From 57dc8534b51fa1501b9d354a3d24d38df9c2aa6b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 2 Feb 2023 10:25:20 -0800 Subject: [PATCH] updated: fix brief notification of update for same version (#27182) old-commit-hash: 24f4ada36d21a8ec841b2d866b1dc142baae8eb2 --- common/params.cc | 2 +- selfdrive/updated.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/params.cc b/common/params.cc index 7dd0fbcb41..db5e5e700d 100644 --- a/common/params.cc +++ b/common/params.cc @@ -171,7 +171,7 @@ std::unordered_map keys = { {"Timezone", PERSISTENT}, {"TrainingVersion", PERSISTENT}, {"UbloxAvailable", PERSISTENT}, - {"UpdateAvailable", CLEAR_ON_MANAGER_START}, + {"UpdateAvailable", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON}, {"UpdateFailedCount", CLEAR_ON_MANAGER_START}, {"UpdaterState", CLEAR_ON_MANAGER_START}, {"UpdaterFetchAvailable", CLEAR_ON_MANAGER_START}, diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 9da2a05a11..2cb7d1c13b 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -423,6 +423,9 @@ def main() -> None: wait_helper = WaitTimeHelper() wait_helper.only_check_for_update = True + # invalidate old finalized update + set_consistent_flag(False) + # Run the update loop while True: wait_helper.ready_event.clear()