Skip to content

Commit ee7e21d

Browse files
committed
Remove Thread::wait from thread example
1 parent dd07d30 commit ee7e21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rtos/Thread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ namespace rtos {
4848
* void blink(DigitalOut *led) {
4949
* while (running) {
5050
* *led = !*led;
51-
* Thread::wait(1000);
51+
* wait(1);
5252
* }
5353
* }
5454
*
5555
* // Spawns a thread to run blink for 5 seconds
5656
* int main() {
5757
* thread.start(callback(blink, &led1));
58-
* Thread::wait(5000);
58+
* wait(5);
5959
* running = false;
6060
* thread.join();
6161
* }

0 commit comments

Comments
 (0)