use usleep instead of sleep (#88)

This commit is contained in:
Konstantin Ullrich
2024-11-13 10:44:50 +01:00
committed by GitHub
parent d47fb52828
commit d72c15f433

View File

@@ -234,13 +234,13 @@ index 000000000..fb082694e
+ MDEBUG("exchange(): waitsForDeviceSend");
+ // NOTE: waitsForDeviceSend should be changed by external code
+ while (waitsForDeviceSend) {
+ sleep(1);
+ usleep(1000);
+ MDEBUG("exchange(): waitsForDeviceSend (still)");
+ }
+
+ MDEBUG("exchange(): waitsForDeviceReceive");
+ while (waitsForDeviceReceive) {
+ sleep(1);
+ usleep(1000);
+ MDEBUG("exchange(): waitsForDeviceReceive (still)");
+ }
+