[FL-3289] Various Furi/FuriHal bug fixes and improvements (#2637)
* Furi: properly handle thread free before TCB scrapping, add furi_free - more invasive version of free to memmgr. FuriHal: add DWT comparator api to cortex. Updater, RPC: refactor various thread shanenigans. Code cleanup. * Rollback free macros and related changes
This commit is contained in:
@@ -53,7 +53,9 @@ static void draw_battery(Canvas* canvas, BatteryInfoModel* data, int x, int y) {
|
||||
(uint32_t)(data->vbus_voltage),
|
||||
(uint32_t)(data->vbus_voltage * 10) % 10,
|
||||
current);
|
||||
} else if(current < 0) {
|
||||
} else if(current < -5) {
|
||||
// Often gauge reports anything in the range 1~5ma as 5ma
|
||||
// That brings confusion, so we'll treat it as Napping
|
||||
snprintf(
|
||||
emote,
|
||||
sizeof(emote),
|
||||
|
||||
Reference in New Issue
Block a user