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

Fixed LAST_CHANNEL compile problem (missing comma)

This commit is contained in:
OneOfEleven
2023-09-20 09:44:17 +01:00
parent 99bff425d6
commit b9bd049dc9
8 changed files with 22 additions and 37 deletions

View File

@ -22,37 +22,21 @@
void UI_DisplayBattery(uint8_t Level)
{
const uint8_t *pBitmap;
bool bClearMode = false;
if (gCurrentFunction != 1)
if (gCurrentFunction != FUNCTION_TRANSMIT)
{
const unsigned int x = LCD_WIDTH - sizeof(BITMAP_BatteryLevel5);
const unsigned int x = LCD_WIDTH - sizeof(BITMAP_BatteryLevel5);
const uint8_t *pBitmap = NULL;
switch (Level)
{
case 0:
pBitmap = NULL;
bClearMode = true;
break;
case 1:
pBitmap = BITMAP_BatteryLevel1;
break;
case 2:
pBitmap = BITMAP_BatteryLevel2;
break;
case 3:
pBitmap = BITMAP_BatteryLevel3;
break;
case 4:
pBitmap = BITMAP_BatteryLevel4;
break;
default:
pBitmap = BITMAP_BatteryLevel5;
break;
case 0: break;
case 1: pBitmap = BITMAP_BatteryLevel1; break;
case 2: pBitmap = BITMAP_BatteryLevel2; break;
case 3: pBitmap = BITMAP_BatteryLevel3; break;
case 4: pBitmap = BITMAP_BatteryLevel4; break;
case 5: pBitmap = BITMAP_BatteryLevel5; break;
}
// col lne, siz, bm, clr/set-pixels
ST7565_DrawLine(x, 0, 18, pBitmap, bClearMode);
// col lne, siz, bm
ST7565_DrawLine(x, 0, 18, pBitmap);
}
}

View File

@ -102,7 +102,7 @@ void Render(const uint8_t rssi, const uint8_t RssiLevel, const uint8_t VFO)
memmove(pLine + 20, BITMAP_AntennaLevel6, sizeof(BITMAP_AntennaLevel6));
}
ST7565_DrawLine(0, Line, 23, pLine, (pLine == NULL) ? true : false);
ST7565_DrawLine(0, Line, 23, pLine);
}
void UI_UpdateRSSI(uint16_t RSSI)