wip
This commit is contained in:
@@ -209,8 +209,8 @@ def thermald_thread(end_event, hw_queue) -> None:
|
|||||||
offline_mode = device_management and params.get_bool("OfflineMode")
|
offline_mode = device_management and params.get_bool("OfflineMode")
|
||||||
|
|
||||||
# For testing a temporary overtemp notice
|
# For testing a temporary overtemp notice
|
||||||
# set to 100 to show
|
# set to 200 to show
|
||||||
test_temp_count = 100
|
test_temp_count = 200
|
||||||
|
|
||||||
while not end_event.is_set():
|
while not end_event.is_set():
|
||||||
sm.update(PANDA_STATES_TIMEOUT)
|
sm.update(PANDA_STATES_TIMEOUT)
|
||||||
|
|||||||
@@ -245,9 +245,9 @@ void OffroadHome::refresh() {
|
|||||||
bool updateAvailable = update_widget->refresh();
|
bool updateAvailable = update_widget->refresh();
|
||||||
int alerts = alerts_widget->refresh();
|
int alerts = alerts_widget->refresh();
|
||||||
if (alerts > 0 && !alerts_widget->isVisible()) {
|
if (alerts > 0 && !alerts_widget->isVisible()) {
|
||||||
update_notif->setVisible(true);
|
alerts_widget->setVisible(true);
|
||||||
} else if (alerts == 0 && alerts_widget->isVisible()) {
|
} else if (alerts == 0 && alerts_widget->isVisible()) {
|
||||||
update_notif->setVisible(false);
|
alerts_widget->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pop-up new notification
|
// pop-up new notification
|
||||||
|
|||||||
Reference in New Issue
Block a user