chore: cleanup compiler warnings, disable "unaligned pointer value" warning (#5743)
This commit is contained in:
@@ -54,7 +54,7 @@ void displayRadioTool(uint8_t index)
|
||||
g_moduleIdx = reusableBuffer.radioTools.script[index].module;
|
||||
pushMenu(reusableBuffer.radioTools.script[index].tool);
|
||||
}
|
||||
else if (reusableBuffer.radioTools.script[index].path != nullptr) {
|
||||
else if (reusableBuffer.radioTools.script[index].path[0]) {
|
||||
char toolName[RADIO_TOOL_NAME_MAXLEN + 1];
|
||||
if (!readToolName(toolName, reusableBuffer.radioTools.script[index].path)) {
|
||||
strAppendFilename(toolName, getBasename(reusableBuffer.radioTools.script[index].path), RADIO_TOOL_NAME_MAXLEN);
|
||||
|
||||
@@ -102,7 +102,7 @@ void showTelemScreen(uint8_t index)
|
||||
chainMenu(menuMainView);
|
||||
} else {
|
||||
index -= 1;
|
||||
if ((index >= 0 && index <= TELEMETRY_SCREEN_TYPE_MAX) && (TELEMETRY_SCREEN_TYPE(index) != TELEMETRY_SCREEN_TYPE_NONE)) {
|
||||
if ((index <= TELEMETRY_SCREEN_TYPE_MAX) && (TELEMETRY_SCREEN_TYPE(index) != TELEMETRY_SCREEN_TYPE_NONE)) {
|
||||
selectedTelemView = index;
|
||||
chainMenu(menuViewTelemetry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user