Remove Thread::wait from thread example

pull/3510/head
Sarah Marsh 2016-12-20 10:42:29 -06:00 committed by Anna Bridge
parent e833f70d75
commit 9336e7aca7
1 changed files with 2 additions and 2 deletions

View File

@ -48,14 +48,14 @@ namespace rtos {
* void blink(DigitalOut *led) {
* while (running) {
* *led = !*led;
* Thread::wait(1000);
* wait(1);
* }
* }
*
* // Spawns a thread to run blink for 5 seconds
* int main() {
* thread.start(callback(blink, &led1));
* Thread::wait(5000);
* wait(5);
* running = false;
* thread.join();
* }