use usleep instead of sleep (#88)
This commit is contained in:
committed by
GitHub
parent
d47fb52828
commit
d72c15f433
@@ -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)");
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user