File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 115115#include " components/digitalIO/Wippersnapper_DigitalGPIO.h"
116116#include " components/i2c/WipperSnapper_I2C.h"
117117
118- // LEDC-Manager, ESP32-only
118+ // Includes for ESP32-only
119119#ifdef ARDUINO_ARCH_ESP32
120120#include " components/ledc/ws_ledc.h"
121+ #include < Esp.h>
121122#endif
122123
123124// Display
Original file line number Diff line number Diff line change @@ -279,6 +279,16 @@ bool Wippersnapper_FS::createBootFile() {
279279 bootFile.print (" MAC Address: " );
280280 bootFile.println (sMAC );
281281
282+ // Print ESP-specific info to boot file
283+ #ifdef ARDUINO_ARCH_ESP32
284+ // Get version of ESP-IDF
285+ bootFile.print (" ESP-IDF Version: " );
286+ bootFile.println (ESP.getSdkVersion ());
287+ // Get version of this core
288+ bootFile.print (" ESP32 Core Version: " );
289+ bootFile.println (ESP.getCoreVersion ());
290+ #endif
291+
282292 bootFile.flush ();
283293 bootFile.close ();
284294 is_success = true ;
You can’t perform that action at this time.
0 commit comments