Skip to content

Commit 2a18a1c

Browse files
authored
Fix LED_BUILTIN not defined
Fix LED_BUILTIN not defined
1 parent 43779b5 commit 2a18a1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/FreeRTOS/FreeRTOS.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#define ARDUINO_RUNNING_CORE 1
55
#endif
66

7+
#ifndef LED_BUILTIN
8+
#define LED_BUILTIN 13
9+
#endif
10+
711
// define two tasks for Blink & AnalogRead
812
void TaskBlink( void *pvParameters );
913
void TaskAnalogReadA3( void *pvParameters );
@@ -14,10 +18,6 @@ void setup() {
1418
// initialize serial communication at 115200 bits per second:
1519
Serial.begin(115200);
1620

17-
while (!Serial) {
18-
; // wait for serial port to connect. Needed for native USB, on LEONARDO, MICRO, YUN, and other 32u4 based boards.
19-
}
20-
2121
// Now set up two tasks to run independently.
2222
xTaskCreatePinnedToCore(
2323
TaskBlink
@@ -42,7 +42,7 @@ void setup() {
4242

4343
void loop()
4444
{
45-
for(;;);// Empty. Things are done in Tasks.
45+
// Empty. Things are done in Tasks.
4646
}
4747

4848
/*--------------------------------------------------*/

0 commit comments

Comments
 (0)