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

old-commit-hash: 24f4ada36d
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent f1a97c0137
commit 57dc8534b5
  1. 2
      common/params.cc
  2. 3
      selfdrive/updated.py

@ -171,7 +171,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"Timezone", PERSISTENT}, {"Timezone", PERSISTENT},
{"TrainingVersion", PERSISTENT}, {"TrainingVersion", PERSISTENT},
{"UbloxAvailable", PERSISTENT}, {"UbloxAvailable", PERSISTENT},
{"UpdateAvailable", CLEAR_ON_MANAGER_START}, {"UpdateAvailable", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"UpdateFailedCount", CLEAR_ON_MANAGER_START}, {"UpdateFailedCount", CLEAR_ON_MANAGER_START},
{"UpdaterState", CLEAR_ON_MANAGER_START}, {"UpdaterState", CLEAR_ON_MANAGER_START},
{"UpdaterFetchAvailable", CLEAR_ON_MANAGER_START}, {"UpdaterFetchAvailable", CLEAR_ON_MANAGER_START},

@ -423,6 +423,9 @@ def main() -> None:
wait_helper = WaitTimeHelper() wait_helper = WaitTimeHelper()
wait_helper.only_check_for_update = True wait_helper.only_check_for_update = True
# invalidate old finalized update
set_consistent_flag(False)
# Run the update loop # Run the update loop
while True: while True:
wait_helper.ready_event.clear() wait_helper.ready_event.clear()

Loading…
Cancel
Save