Skip to content

Commit 36de235

Browse files
committed
add power indicator to view
1 parent 4a70e3c commit 36de235

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

finik_eth_app.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "finik_eth_app.h"
33

44
#include <furi.h>
5+
#include <furi_hal_power.h>
56
#include <gui/gui.h>
67
#include <gui/elements.h>
78
#include <input/input.h>
@@ -74,6 +75,11 @@ static void finik_eth_app_draw_callback(Canvas* canvas, void* ctx) {
7475
draw_process_selector(canvas, process, cursor);
7576
draw_battery_cunsumption(canvas, (double)consumption);
7677
ethernet_view_process_draw(app->eth_worker->active_process, canvas);
78+
if(furi_hal_power_is_otg_enabled()) {
79+
canvas_draw_str(canvas, 22, 6, "+");
80+
} else {
81+
canvas_draw_str(canvas, 22, 6, "-");
82+
}
7783
}
7884
}
7985

0 commit comments

Comments
 (0)