Open stefanos1316 opened 3 years ago
The check_infected_risk
function is in two places: 1) after pressing the WPS button and 2) in the update_filter when the filter is received.
Also, in case someone is infected, then how do we reset the device?
I have tried pressing the reset button but nothing happens.
How should we reset the device?
Fixed the LED blinkings for WiFi and Watchdog's heartbeat after pressing the button. Also, removed
run_python check_infection_risk "$FILTER" || :
since it is also executed insideupdate_filter
after we press the WiFi button, therefore, it is not needed to execute this function two times. What was causing the heartbeat to stop was thecleanup()
, therefore, I removed this function and let the device blink red for 5 seconds if a match against the filter is found. I have also tested it with and with out debugging and both times the device acted as expected.