diff options
author | suchinton2001 <suchinton.2001@gmail.com> | 2023-12-04 19:33:48 +0530 |
---|---|---|
committer | suchinton2001 <suchinton.2001@gmail.com> | 2023-12-04 19:36:09 +0530 |
commit | 545256365dc0603658ad5e17bfa1fa00ba829d7e (patch) | |
tree | 8852946c5c3de6a8ca58d09a2baee7cf734f882b /Widgets/ICPage.py | |
parent | 34fbf0965783cc993876af307a353ba9d33ca69d (diff) |
Fix demo mode crash due to demo mode toggle
- Avoid starting the same thread twice when running demo-mode
- Add red highlight to toggle button when unchecked
- Log errors when running running steering signals in CAN mode
Bug-AGL: SPEC-5005
Change-Id: I73e163c87149e7d8eee53a7ab953339a7b94e1af
Signed-off-by: suchinton2001 <suchinton.2001@gmail.com>
Diffstat (limited to 'Widgets/ICPage.py')
-rw-r--r-- | Widgets/ICPage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Widgets/ICPage.py b/Widgets/ICPage.py index 8681d61..859f3e7 100644 --- a/Widgets/ICPage.py +++ b/Widgets/ICPage.py @@ -384,7 +384,8 @@ class VehicleSimulator(QObject): if not self.running: self.reset() self.running = True - self.thread.start() + if not self.thread.is_alive(): + self.thread.start() def stop(self): self.running = False |