0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

Fix PTT bug

This commit is contained in:
OneOfEleven
2023-10-10 00:56:55 +01:00
parent 79dae75556
commit 023e7b6ee3
8 changed files with 18 additions and 22 deletions

View File

@ -45,7 +45,7 @@ void UI_DrawBattery(uint8_t *bitmap, const unsigned int level, const unsigned in
}
else
if (blink == 0)
memset(bitmap, 0, sizeof(bitmap));
memset(bitmap, 0, sizeof(BITMAP_BATTERY_LEVEL));
}
void UI_DisplayBattery(const unsigned int level, const unsigned int blink)

View File

@ -539,7 +539,7 @@ void UI_DisplayMenu(void)
#endif
case MENU_STEP:
sprintf(String, "%d.%02ukHz", STEP_FREQ_TABLE[g_sub_menu_selection] / 100, abs(STEP_FREQ_TABLE[g_sub_menu_selection]) % 100);
sprintf(String, "%d.%02ukHz", STEP_FREQ_TABLE[g_sub_menu_selection] / 100, STEP_FREQ_TABLE[g_sub_menu_selection] % 100);
break;
case MENU_TXP: