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");
|
+ MDEBUG("exchange(): waitsForDeviceSend");
|
||||||
+ // NOTE: waitsForDeviceSend should be changed by external code
|
+ // NOTE: waitsForDeviceSend should be changed by external code
|
||||||
+ while (waitsForDeviceSend) {
|
+ while (waitsForDeviceSend) {
|
||||||
+ sleep(1);
|
+ usleep(1000);
|
||||||
+ MDEBUG("exchange(): waitsForDeviceSend (still)");
|
+ MDEBUG("exchange(): waitsForDeviceSend (still)");
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ MDEBUG("exchange(): waitsForDeviceReceive");
|
+ MDEBUG("exchange(): waitsForDeviceReceive");
|
||||||
+ while (waitsForDeviceReceive) {
|
+ while (waitsForDeviceReceive) {
|
||||||
+ sleep(1);
|
+ usleep(1000);
|
||||||
+ MDEBUG("exchange(): waitsForDeviceReceive (still)");
|
+ MDEBUG("exchange(): waitsForDeviceReceive (still)");
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user