diff options
Diffstat (limited to 'demos/STM32/RT-STM32F407-DISCOVERY-G++')
-rw-r--r-- | demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp index 382148e7c..6c09344f4 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp +++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp @@ -184,8 +184,8 @@ int main(void) { */ while (true) { if (palReadPad(GPIOA, GPIOA_BUTTON)) { - tester.start(NORMALPRIO); - tester.wait(); + ThreadReference tref = tester.start(NORMALPRIO); + tref.wait(); }; BaseThread::sleep(TIME_MS2I(500)); } |