Retain tethering status between reboots

This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 1585cbcd25
commit 6661c4dd89
5 changed files with 18 additions and 0 deletions

View File

@@ -370,6 +370,7 @@ void UIState::updateStatus() {
started_prev = scene.started;
scene.world_objects_visible = false;
emit offroadTransition(!scene.started);
wifi->setTetheringEnabled(scene.started && scene.tethering_enabled);
}
}
@@ -393,6 +394,8 @@ UIState::UIState(QObject *parent) : QObject(parent) {
QObject::connect(timer, &QTimer::timeout, this, &UIState::update);
timer->start(1000 / UI_FREQ);
wifi = new WifiManager(this);
ui_update_frogpilot_params(this);
}