Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 48abfd2

Browse files
committed
minor change in waitforvalu
1 parent 880ec2c commit 48abfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Unosquare.RaspberryIO/Gpio/GpioPin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public bool WaitForValue(GpioPinValue status, int timeOutMillisecond)
536536
if (ReadValue() == status)
537537
return true;
538538

539-
// Pi.Timing.SleepMicroseconds(500);
539+
Pi.Timing.SleepMicroseconds(101); // 101 uses nanosleep as opposed to a loop.
540540
}
541541
while (hrt.ElapsedMilliseconds <= timeOutMillisecond);
542542

0 commit comments

Comments
 (0)