Update cubesatsim.ino

pull/161/head
alanbjohnston 4 years ago committed by GitHub
parent 61c6b6fe40
commit d1b5bab66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2422,7 +2422,8 @@ void sleep(float time) { // sleeps for intervals more than 0.01 milli seconds
unsigned long time_us = (unsigned long)(time * 1000000.0);
unsigned long startSleep = micros();
while ((micros() - startSleep) < time_us) {
busy_wait_us(100);
// busy_wait_us(100);
delayMicroseconds(100);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.