Skip to content

Commit

Permalink
Use wait_ms instead wait
Browse files Browse the repository at this point in the history
Use `wait_ms` API for ms wait, as recommended by Mbed OS
  • Loading branch information
Deepika Bhavnani authored Jan 4, 2019
1 parent 89aef46 commit bb98b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main()
while (true) {
// Blink LED and wait 0.5 seconds
led1 = !led1;
wait(0.5f);
wait_ms(500);

// Following the main thread wait, report on the current system status
sys_state.report_state();
Expand Down

0 comments on commit bb98b91

Please sign in to comment.