Don't go through uBit object if not needed

This commit is contained in:
Michal Moskal
2016-04-19 11:52:44 -07:00
parent 13bdcf762d
commit c54cd21efa
5 changed files with 12 additions and 10 deletions

View File

@ -180,8 +180,9 @@ namespace pins {
}
if (ms > 0) {
uBit.sleep(ms);
fiber_sleep(ms);
pitchPin->setAnalogValue(0);
// TODO why do we use wait_ms() here? it's a busy wait I think
wait_ms(5);
}
}