Merge pull request #611 from EdgeTX/CompWarnings
Removes two compiler warnings (thx @pfeerick for testing!)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user