We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c005c commit a8121f3Copy full SHA for a8121f3
cores/rp2040/wiring_pulse.cpp
@@ -38,7 +38,7 @@ extern "C" unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeo
38
}
39
40
// Wait for assert
41
- while ((!!gpio_get(pin) != !state) && (time_us_64() < abort));
+ while ((!!gpio_get(pin) != !!state) && (time_us_64() < abort));
42
uint64_t begin = time_us_64();
43
if (begin >= abort) {
44
return 0;
0 commit comments