Skip to content

Commit 348ba0d

Browse files
committed
add output
1 parent 3a64cec commit 348ba0d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/Wippersnapper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@
115115
#include "components/digitalIO/Wippersnapper_DigitalGPIO.h"
116116
#include "components/i2c/WipperSnapper_I2C.h"
117117

118-
// LEDC-Manager, ESP32-only
118+
// Inlcudes for ESP32-only
119119
#ifdef ARDUINO_ARCH_ESP32
120120
#include "components/ledc/ws_ledc.h"
121+
#include <Esp.h>
121122
#endif
122123

123124
// Display

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)