Commit 73999ad
committed
zephyrCommon: Immediately terminate pulseIn if gpio not ready
If gpio is not initialized, the pulseIn function will terminate
without running the timer.
Signed-off-by: TOKITA Hiroshi <[email protected]>1 parent 20448bb commit 73999ad
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | 415 | | |
419 | | - | |
| 416 | + | |
420 | 417 | | |
421 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
0 commit comments