Retain tethering status between reboots
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user