eellak / epidose

Privacy-preserving epidemic dosimeter based on DP-3T contact tracing
Apache License 2.0
52 stars 6 forks source link

Fix heartbeat and wps LED blinking #80

Open stefanos1316 opened 3 years ago

stefanos1316 commented 3 years ago

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 inside update_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 the cleanup(), 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.

stefanos1316 commented 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?