Retain tethering status between reboots

This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 34e5afb096
commit a37d8e5830
6 changed files with 18 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
#include "common/mat.h"
#include "common/params.h"
#include "common/timing.h"
#include "selfdrive/ui/qt/network/wifi_manager.h"
#include "system/hardware/hw.h"
const int UI_BORDER_SIZE = 30;
@@ -191,6 +192,7 @@ typedef struct UIScene {
bool road_name_ui;
bool show_driver_camera;
bool show_fps;
bool tethering_enabled;
bool turn_signal_left;
bool turn_signal_right;
bool unlimited_road_ui_length;
@@ -261,6 +263,8 @@ private:
QTimer *timer;
bool started_prev = false;
PrimeType prime_type = PrimeType::UNKNOWN;
WifiManager *wifi = nullptr;
};
UIState *uiState();