Skip to content

Commit 4bd9c6f

Browse files
committed
Revert "Move freertos hook between setup() and loop()"
This reverts commit 3a3cfe4.
1 parent 117ce05 commit 4bd9c6f

File tree

2 files changed

+2
-1
lines changed
  • cores/arduino
  • libraries/Arduino_FreeRTOS/src/portable/FSP

2 files changed

+2
-1
lines changed

cores/arduino/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ void arduino_main(void)
112112
Serial.begin(115200);
113113
#endif
114114
startAgt();
115-
setup();
116115
start_freertos_on_header_inclusion();
116+
setup();
117117
while (1)
118118
{
119119
loop();

libraries/Arduino_FreeRTOS/src/portable/FSP/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ static void prvTaskExitError(void);
226226
#endif
227227

228228
void loop_thread_func(void* arg) {
229+
setup();
229230
while (1)
230231
{
231232
loop();

0 commit comments

Comments
 (0)