mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 17:06:25 +01:00
prevent Mini AP from booting before its time
This commit is contained in:
@@ -30,4 +30,6 @@ bool sendCancelPending(struct pendingData* pending);
|
||||
bool sendDataAvail(struct pendingData* pending);
|
||||
bool sendPing();
|
||||
|
||||
void APEnterEarlyReset();
|
||||
|
||||
bool sendChannelPower(struct espSetChannelPower* scp);
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user