Skip to content

Commit

Permalink
ESP32: Refuse IDF5
Browse files Browse the repository at this point in the history
  • Loading branch information
habazut committed Jun 2, 2024
1 parent 28d60d4 commit 430161e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DCCTimerESP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ int DCCTimer::freeMemory() {
#endif

////////////////////////////////////////////////////////////////////////

#ifdef ARDUINO_ARCH_ESP32

#include "esp_idf_version.h"
#if ESP_IDF_VERSION_MAJOR > 4
#error "DCC-EX does not support compiling with IDF version 5.0 or later. Downgrade your ESP32 library to a version that contains version 4 Arduino ESP32 library 3.0.0 is too new. Use 2.0.9 to 2.0.17"
#endif

#include <driver/adc.h>
#include <soc/sens_reg.h>
#include <soc/sens_struct.h>
Expand Down

0 comments on commit 430161e

Please sign in to comment.