Skip to content

Commit

Permalink
WIP: restart SPI after wifi end/deinit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed May 30, 2024
1 parent 1fcb7a6 commit f901e28
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/network_interfaces/Wippersnapper_AIRLIFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
} else {
// disconnect from possible previous connection
_disconnect();
delay(100);
WiFi.end();
delay(100);
_wifi->begin();
feedWDT();
WS_DEBUG_PRINT("Reset Pin: ");
WS_DEBUG_PRINTLN(_rstPin);
Expand All @@ -319,11 +322,11 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
delay(2000);
}
feedWDT();
// WS_DEBUG_PRINT("ESP32 booted, version: ");
// WS_PRINTER.flush();
// WS_DEBUG_PRINTLN(WiFi.firmwareVersion());
// WS_PRINTER.flush();
// feedWDT();
WS_DEBUG_PRINT("ESP32 booted, version: ");
WS_PRINTER.flush();
WS_DEBUG_PRINTLN(WiFi.firmwareVersion());
WS_PRINTER.flush();
feedWDT();

// // validate co-processor is physically connected connection
// if (WiFi.status() == WL_NO_MODULE) {
Expand Down

0 comments on commit f901e28

Please sign in to comment.