Skip to content

Commit f653c1c

Browse files
committed
ui: don't sleep on PC
1 parent b8a845f commit f653c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/ui/ui_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from openpilot.common.swaglog import cloudlog
1111
from openpilot.selfdrive.ui.lib.prime_state import PrimeState
1212
from openpilot.system.ui.lib.application import gui_app
13-
from openpilot.system.hardware import HARDWARE
13+
from openpilot.system.hardware import HARDWARE, PC
1414

1515
BACKLIGHT_OFFROAD = 50
1616

@@ -246,7 +246,7 @@ def _update_wakefulness(self):
246246
callback()
247247
self._prev_timed_out = interaction_timeout
248248

249-
self._set_awake(ui_state.ignition or not interaction_timeout)
249+
self._set_awake(ui_state.ignition or not interaction_timeout or PC)
250250

251251
def _set_awake(self, on: bool):
252252
if on != self._awake:

0 commit comments

Comments
 (0)