prevent Mini AP from booting before its time

This commit is contained in:
Jelmer
2023-05-09 16:57:57 +02:00
parent fd77e0a77c
commit 40074c6bf9
3 changed files with 8 additions and 0 deletions

View File

@@ -30,4 +30,6 @@ bool sendCancelPending(struct pendingData* pending);
bool sendDataAvail(struct pendingData* pending);
bool sendPing();
void APEnterEarlyReset();
bool sendChannelPower(struct espSetChannelPower* scp);

View File

@@ -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

View File

@@ -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);