Skip to content

Commit 4320650

Browse files
committed
fix(rmt): error case
1 parent a1f228b commit 4320650

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Diff for: libraries/ESP32/examples/RMT/Legacy_RMT_Driver_Compatible/Legacy_RMT_Driver_Compatible.ino

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@
1010
#ifndef ESP32_ARDUINO_NO_RGB_BUILTIN
1111

1212
// add the file "build_opt.h" to your Arduino project folder with "-DESP32_ARDUINO_NO_RGB_BUILTIN" to use the RMT Legacy driver
13-
#warning "ESP32_ARDUINO_NO_RGB_BUILTIN is not defined, this example is intended to demonstrate the RMT Legacy driver.
14-
#warning "Please add the file 'build_opt.h' with '-DESP32_ARDUINO_NO_RGB_BUILTIN' to your Arduino project folder."
15-
#warning "Another way to disable the RGB_BUILTIN is to define it in the platformio.ini file, for instance: '-D ESP32_ARDUINO_NO_RGB_BUILTIN'"
16-
17-
void setup() {
18-
}
19-
20-
void loop() {
21-
}
13+
#error "ESP32_ARDUINO_NO_RGB_BUILTIN is not defined, this example is intended to demonstrate the RMT Legacy driver.
14+
#error "Please add the file 'build_opt.h' with '-DESP32_ARDUINO_NO_RGB_BUILTIN' to your Arduino project folder."
15+
#error "Another way to disable the RGB_BUILTIN is to define it in the platformio.ini file, for instance: '-D ESP32_ARDUINO_NO_RGB_BUILTIN'"
2216

2317
#else
2418

0 commit comments

Comments
 (0)