frameTime sleep reduced to 0.01 to increase accuracy

pull/204/head
alanbjohnston 3 years ago committed by GitHub
parent ccdf01d0a1
commit cbe388a787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -266,7 +266,7 @@ void loop() {
// while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100
while ((millis() - sampleTime) < ((unsigned int)frameTime)) // - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
sleep(0.01); // was 0.1 sec
sampleTime = (unsigned int) millis();
// delay(2000);

Loading…
Cancel
Save

Powered by TurnKey Linux.