Skip to content

Commit

Permalink
Update ui_barometer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Feb 13, 2024
1 parent e98e2fd commit 6a304ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbn_m5tough_active_boat/ui_barometer.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extern "C" {
#if LV_FONT_MONTSERRAT_20
lv_obj_set_style_text_font(pressure_label, &lv_font_montserrat_20, 0);
#endif
lv_label_set_text_static(pressure_label, "\n hPa");
lv_label_set_text_static(pressure_label, "\n hPa");

/*Thermometer*/
static lv_style_t style_indic;
Expand Down Expand Up @@ -124,7 +124,7 @@ extern "C" {
static void pressure_update_cb() {
lv_label_set_text(pressure_label,
((fresh(shipDataModel.environment.air_outside.pressure.age, 1800000) ?
String(shipDataModel.environment.air_outside.pressure.hPa, 0) += "\n hPa" : String(" --\n hPa")))
String(" ") += String(shipDataModel.environment.air_outside.pressure.hPa, 0) += "\n hPa" : String(" --\n hPa")))
.c_str());

set_pressure_value(indic_barometer, fresh(shipDataModel.environment.air_outside.pressure.age, 1800000) ? shipDataModel.environment.air_outside.pressure.hPa : 0);
Expand Down

0 comments on commit 6a304ac

Please sign in to comment.