We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a845f commit f653c1cCopy full SHA for f653c1c
selfdrive/ui/ui_state.py
@@ -10,7 +10,7 @@
10
from openpilot.common.swaglog import cloudlog
11
from openpilot.selfdrive.ui.lib.prime_state import PrimeState
12
from openpilot.system.ui.lib.application import gui_app
13
-from openpilot.system.hardware import HARDWARE
+from openpilot.system.hardware import HARDWARE, PC
14
15
BACKLIGHT_OFFROAD = 50
16
@@ -246,7 +246,7 @@ def _update_wakefulness(self):
246
callback()
247
self._prev_timed_out = interaction_timeout
248
249
- self._set_awake(ui_state.ignition or not interaction_timeout)
+ self._set_awake(ui_state.ignition or not interaction_timeout or PC)
250
251
def _set_awake(self, on: bool):
252
if on != self._awake:
0 commit comments