We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a83eb commit 9497449Copy full SHA for 9497449
src/system/power.c
@@ -526,7 +526,7 @@ static void power_thread(void)
526
// use estimated remaining runtime or pptt for battery_low
527
uint64_t runtime = sys_get_battery_remaining_time_estimate();
528
bool runtime_valid = runtime;
529
- bool runtime_low = k_ticks_to_us_floor64(runtime) < CONFIG_3_SETTINGS_READ(CONFIG_3_BATTERY_LOW_RUNTIME_THRESHOLD);
+ bool runtime_low = k_ticks_to_ms_floor64(runtime) < CONFIG_3_SETTINGS_READ(CONFIG_3_BATTERY_LOW_RUNTIME_THRESHOLD);
530
bool pptt_low = current_battery_pptt < 1000;
531
if (battery_available && !battery_low && (runtime_valid ? runtime_low : pptt_low))
532
battery_low = true;
0 commit comments