0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 15:08:37 +03:00

battery current rename

This commit is contained in:
OneOfEleven
2023-10-10 10:52:57 +01:00
parent 47357fb113
commit b19be17f01
9 changed files with 21 additions and 21 deletions

View File

@ -1894,9 +1894,9 @@ void APP_TimeSlice500ms(void)
if (g_reduced_service)
{
BOARD_ADC_GetBatteryInfo(&g_battery_current_voltage, &g_battery_current);
BOARD_ADC_GetBatteryInfo(&g_usb_current_voltage, &g_usb_current);
if (g_battery_current > 500 || g_battery_calibration[3] < g_battery_current_voltage)
if (g_usb_current > 500 || g_battery_calibration[3] < g_usb_current_voltage)
{
#ifdef ENABLE_OVERLAY
overlay_FLASH_RebootToBootloader();
@ -1914,7 +1914,7 @@ void APP_TimeSlice500ms(void)
if ((g_battery_check_counter & 1) == 0)
{
BOARD_ADC_GetBatteryInfo(&g_battery_voltages[g_battery_voltage_index++], &g_battery_current);
BOARD_ADC_GetBatteryInfo(&g_battery_voltages[g_battery_voltage_index++], &g_usb_current);
if (g_battery_voltage_index > 3)
g_battery_voltage_index = 0;
BATTERY_GetReadings(true);