diff --git a/ESP32_AP-Flasher/include/serialap.h b/ESP32_AP-Flasher/include/serialap.h index 20328373..8d9ea599 100644 --- a/ESP32_AP-Flasher/include/serialap.h +++ b/ESP32_AP-Flasher/include/serialap.h @@ -30,4 +30,6 @@ bool sendCancelPending(struct pendingData* pending); bool sendDataAvail(struct pendingData* pending); bool sendPing(); +void APEnterEarlyReset(); + bool sendChannelPower(struct espSetChannelPower* scp); \ No newline at end of file diff --git a/ESP32_AP-Flasher/src/main.cpp b/ESP32_AP-Flasher/src/main.cpp index aff5dceb..8150215a 100644 --- a/ESP32_AP-Flasher/src/main.cpp +++ b/ESP32_AP-Flasher/src/main.cpp @@ -39,6 +39,7 @@ void timeTask(void* parameter) { void setup() { #ifdef OPENEPAPERLINK_MINI_AP_PCB + APEnterEarlyReset(); // this allows us to view the booting process. After connecting to USB, you have 3 seconds to open a terminal on the COM port vTaskDelay(3000 / portTICK_PERIOD_MS); #endif diff --git a/ESP32_AP-Flasher/src/serialap.cpp b/ESP32_AP-Flasher/src/serialap.cpp index 182a04b5..1431d181 100644 --- a/ESP32_AP-Flasher/src/serialap.cpp +++ b/ESP32_AP-Flasher/src/serialap.cpp @@ -124,6 +124,11 @@ bool waitCmdReply() { #endif #endif +void APEnterEarlyReset(){ + pinMode(AP_RESET_PIN, OUTPUT); + digitalWrite(AP_RESET_PIN, LOW); +} + // Reset the tag void APTagReset() { pinMode(AP_RESET_PIN, OUTPUT);