| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b3dac0 commit e4d30fe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -451,12 +451,17 @@ public static void releasePin(int pin) { | |||
| 451 | 451 | * @return true if the interrupt occured, false if the timeout occured | |
| 452 | 452 | * @webref | |
| 453 | 453 | */ | |
| 454 | - public static boolean waitForInterrupt(int pin, int mode, int timeout) { | ||
| 454 | + public static boolean waitFor(int pin, int mode, int timeout) { | ||
| 455 | 455 | enableInterrupt(pin, mode); | |
| 456 | 456 | return waitForInterrupt(pin, timeout); | |
| 457 | 457 | } | |
| 458 | 458 | ||
| 459 | 459 | ||
| 460 | + public static boolean waitForInterrupt(int pin, int mode, int timeout) { | ||
| 461 | + throw new RuntimeException("The waitForInterrupt function has been renamed to waitFor. Please update your sketch accordingly."); | ||
| 462 | + } | ||
| 463 | + | ||
| 464 | + | ||
| 460 | 465 | /** | |
| 461 | 466 | * Waits for the value of an input pin to change | |
| 462 | 467 | * | |
| Back | FazBrowse Home | New Git URL |
0 commit comments