Skip to content

Commit

Permalink
Update bbn_m5tough_active_boat.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Jan 4, 2024
1 parent 3fa3f2a commit 0ef917a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bbn_m5tough_active_boat/bbn_m5tough_active_boat.ino
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ WMM_Tinier myDeclination;
#include "ui_weather.h"
#include "ui_power_victron.h"
#include "ui_vessel_info.h"
#include "ui_barometer.h"

lv_updatable_screen_t* screens[] = {

Expand All @@ -162,6 +163,7 @@ lv_updatable_screen_t* screens[] = {
&gpsScreen,
&speedScreen,
&depthScreen,
&barometerScreen,
};

int page = 0;
Expand Down Expand Up @@ -234,6 +236,7 @@ void setup() {
init_rebootScreen();
init_devStatusScreen();
init_vesselScreen();
init_barometerScreen();

init_screen(*screens[page]);
lv_scr_load(screens[page]->screen);
Expand Down

0 comments on commit 0ef917a

Please sign in to comment.