Skip to content

Commit a65d380

Browse files
committed
compile error in PlatfomIO
1 parent 7c0dde0 commit a65d380

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AudioTools/CoreAudio/AudioRuntime.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ inline void printNChar(char ch, int n){
4949
Serial.println();
5050
}
5151

52+
#ifndef ESP_ARDUINO_VERSION_STR
53+
# define df2xstr(s) #s
54+
# define df2str(s) df2xstr(s)
55+
# define ESP_ARDUINO_VERSION_STR df2str(ESP_ARDUINO_VERSION_MAJOR) "." df2str(ESP_ARDUINO_VERSION_MINOR) "." df2str(ESP_ARDUINO_VERSION_PATCH)
56+
#endif
57+
5258
/// prints the available version information
5359
inline void printVersionInfo() {
5460
printNChar('*',50);

0 commit comments

Comments
 (0)