Refactoring
This commit is contained in:
@@ -10,10 +10,6 @@ extern const uint8_t BITMAP_RX[8];
|
|||||||
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel[2];
|
extern const uint8_t BITMAP_BatteryLevel[2];
|
||||||
extern const uint8_t BITMAP_BatteryLevel1[17];
|
extern const uint8_t BITMAP_BatteryLevel1[17];
|
||||||
extern const uint8_t BITMAP_BatteryLevel2[17];
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel3[17];
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel4[17];
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel5[17];
|
|
||||||
|
|
||||||
extern const uint8_t BITMAP_USB_C[9];
|
extern const uint8_t BITMAP_USB_C[9];
|
||||||
|
|
||||||
|
@@ -165,7 +165,7 @@ void UI_DisplayStatus()
|
|||||||
char s[8];
|
char s[8];
|
||||||
unsigned int space_needed;
|
unsigned int space_needed;
|
||||||
|
|
||||||
unsigned int x2 = LCD_WIDTH - sizeof(BITMAP_BatteryLevel5) - 3;
|
unsigned int x2 = LCD_WIDTH - sizeof(BITMAP_BatteryLevel1) - 3;
|
||||||
|
|
||||||
if (gChargingWithTypeC)
|
if (gChargingWithTypeC)
|
||||||
x2 -= sizeof(BITMAP_USB_C); // the radio is on charge
|
x2 -= sizeof(BITMAP_USB_C); // the radio is on charge
|
||||||
|
Reference in New Issue
Block a user