0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 22:29:50 +03:00

Lots n lots

This commit is contained in:
OneOfEleven
2023-10-29 22:33:38 +00:00
parent 230fdccf10
commit f3e347bc5a
39 changed files with 951 additions and 770 deletions

View File

@ -32,7 +32,7 @@ bool g_low_battery;
bool g_low_battery_blink;
uint16_t g_battery_check_counter;
volatile uint16_t g_power_save_10ms;
volatile uint16_t g_power_save_tick_10ms;
/*
Based on real measurement
@ -145,6 +145,6 @@ void BATTERY_GetReadings(const bool bDisplayBatteryLevel)
UI_DisplayBattery(g_battery_display_level, g_low_battery_blink);
}
g_low_batteryCountdown = 0;
g_low_battery_tick_10ms = 0;
}
}

View File

@ -30,9 +30,9 @@ extern bool g_charging_with_type_c;
extern bool g_low_battery;
extern bool g_low_battery_blink;
extern uint16_t g_battery_check_counter;
extern volatile uint16_t g_power_save_10ms;
extern volatile uint16_t g_power_save_tick_10ms;
unsigned int BATTERY_VoltsToPercent(const unsigned int voltage_10mV);
void BATTERY_GetReadings(const bool bDisplayBatteryLevel);
void BATTERY_GetReadings(const bool bDisplayBatteryLevel);
#endif