Skip to content

Commit

Permalink
add power indicator to view
Browse files Browse the repository at this point in the history
  • Loading branch information
karasevia committed Jul 10, 2023
1 parent 4a70e3c commit 36de235
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions finik_eth_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "finik_eth_app.h"

#include <furi.h>
#include <furi_hal_power.h>
#include <gui/gui.h>
#include <gui/elements.h>
#include <input/input.h>
Expand Down Expand Up @@ -74,6 +75,11 @@ static void finik_eth_app_draw_callback(Canvas* canvas, void* ctx) {
draw_process_selector(canvas, process, cursor);
draw_battery_cunsumption(canvas, (double)consumption);
ethernet_view_process_draw(app->eth_worker->active_process, canvas);
if(furi_hal_power_is_otg_enabled()) {
canvas_draw_str(canvas, 22, 6, "+");
} else {
canvas_draw_str(canvas, 22, 6, "-");
}
}
}

Expand Down

0 comments on commit 36de235

Please sign in to comment.