fix(ota): bypass 64KB flash block erase, increase WDT timeouts, and place encoder table in DRAM
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m11s
All checks were successful
ESP32 Build & Release / build (push) Successful in 1m11s
This commit is contained in:
@@ -195,4 +195,18 @@ bool rfid_manager_has_pending_card(void)
|
||||
void rfid_manager_consume_card(void)
|
||||
{
|
||||
s_pending_card = false;
|
||||
}
|
||||
|
||||
void rfid_manager_pause(bool pause)
|
||||
{
|
||||
TaskHandle_t task = xTaskGetHandle(RC522_TASK_NAME);
|
||||
if (task != NULL) {
|
||||
if (pause) {
|
||||
vTaskSuspend(task);
|
||||
ESP_LOGI(TAG, "RFID polling suspended");
|
||||
} else {
|
||||
vTaskResume(task);
|
||||
ESP_LOGI(TAG, "RFID polling resumed");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user