1. Ensure that recalibration doesn't cause issues with failing to pause watchdog and clear flags
2. Ensure all credentials are purged on device deletion to avoid security issues 3. Clear calibration state (set to false) on device deletion.
This commit is contained in:
@@ -109,7 +109,7 @@ void Encoder::setupWatchdog() {
|
||||
|
||||
void Encoder::pauseWatchdog() {
|
||||
feedWDog = false;
|
||||
esp_timer_stop(watchdog_handle);
|
||||
if (watchdog_handle != NULL) esp_timer_stop(watchdog_handle);
|
||||
}
|
||||
|
||||
Encoder::~Encoder() {
|
||||
|
||||
Reference in New Issue
Block a user