Skip to content

Commit

Permalink
use usleep instead of sleep (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinullrich authored Nov 13, 2024
1 parent d47fb52 commit d72c15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/monero/0016-add-dummy-device-for-ledger.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
+ }
+
Expand Down

0 comments on commit d72c15f

Please sign in to comment.