Skip to content

Commit

Permalink
Disable HelloRadio build for IDF 5.x (#220)
Browse files Browse the repository at this point in the history
* Disable HelloRadio build for IDF 5.x
  • Loading branch information
TheNitek authored Jun 24, 2024
1 parent 55f1e8c commit 0b3adf5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Examples/Basics/7-HelloRadio/7-HelloRadio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
// ----------------------------

#include <Arduino.h>

// This example only works with ESP32 Board package in version 2.0.17 (not 3.x.x!)
#if ESP_IDF_VERSION_MAJOR == 5
#warning This example only works with ESP32 Board package in version 2.0.17 (not 3.x.x!)
void setup(){}
void loop(){}
#else


#include <WiFi.h>

// ----------------------------
Expand Down Expand Up @@ -101,7 +110,7 @@ void setup()

}

void loop()
void loop()
{
// Prcoess audio
audio.loop();
Expand Down Expand Up @@ -184,4 +193,4 @@ void audio_eof_speech(const char *info)
Serial.println(info);
}


#endif // ESP_IDF_VERSION_MAJOR

0 comments on commit 0b3adf5

Please sign in to comment.