Merge pull request #611 from EdgeTX/CompWarnings

Removes two compiler warnings (thx @pfeerick for testing!)
This commit is contained in:
Risto
2021-08-22 09:01:46 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class Layout1x4: public Layout
{
index = 3;
}
return {zone.x, zone.y + zone.h / 4 * index, zone.w, zone.h / 4};
return {zone.x, zone.y + zone.h / 4 * (int)index, zone.w, zone.h / 4};
return zone;
}
+1 -1
View File
@@ -111,7 +111,7 @@ uint8_t getModuleType(uint8_t module)
uint8_t getRequiredProtocol(uint8_t module)
{
uint8_t protocol;
uint8_t protocol = PROTOCOL_CHANNELS_UNINITIALIZED;
switch (getModuleType(module)) {
case MODULE_TYPE_PPM: