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 115
115
#include " components/digitalIO/Wippersnapper_DigitalGPIO.h"
116
116
#include " components/i2c/WipperSnapper_I2C.h"
117
117
118
- // LEDC-Manager, ESP32-only
118
+ // Inlcudes for ESP32-only
119
119
#ifdef ARDUINO_ARCH_ESP32
120
120
#include " components/ledc/ws_ledc.h"
121
+ #include < Esp.h>
121
122
#endif
122
123
123
124
// Display
Original file line number Diff line number Diff line change @@ -279,6 +279,16 @@ bool Wippersnapper_FS::createBootFile() {
279
279
bootFile.print (" MAC Address: " );
280
280
bootFile.println (sMAC );
281
281
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
+
282
292
bootFile.flush ();
283
293
bootFile.close ();
284
294
is_success = true ;
You can’t perform that action at this time.
0 commit comments