updated: fix brief notification of update for same version (#27182)

pull/27189/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 647e81f9bb
commit 24f4ada36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      common/params.cc
  2. 3
      selfdrive/updated.py

@ -171,7 +171,7 @@ std::unordered_map<std::string, uint32_t> 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},

@ -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()

Loading…
Cancel
Save