mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-13 01:59:29 +00:00
fix restore settings (#2995)
This commit is contained in:
+2
-2
@@ -127,13 +127,13 @@ TPMSAppView::TPMSAppView(NavigationView&) {
|
|||||||
format::pressure_unit = (uint8_t)i;
|
format::pressure_unit = (uint8_t)i;
|
||||||
update_view();
|
update_view();
|
||||||
};
|
};
|
||||||
options_pressure.set_selected_index(format::pressure_unit, true);
|
options_pressure.set_by_value(format::pressure_unit);
|
||||||
|
|
||||||
options_temperature.on_change = [this](size_t, int32_t i) {
|
options_temperature.on_change = [this](size_t, int32_t i) {
|
||||||
format::temp_unit = (uint8_t)i;
|
format::temp_unit = (uint8_t)i;
|
||||||
update_view();
|
update_view();
|
||||||
};
|
};
|
||||||
options_temperature.set_selected_index(format::temp_unit, true);
|
options_temperature.set_by_value(format::temp_unit);
|
||||||
|
|
||||||
logger = std::make_unique<TPMSLogger>();
|
logger = std::make_unique<TPMSLogger>();
|
||||||
if (logger) {
|
if (logger) {
|
||||||
|
|||||||
Reference in New Issue
Block a user