Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/DuetNG/SX1509.h')
-rw-r--r--src/DuetNG/SX1509.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DuetNG/SX1509.h b/src/DuetNG/SX1509.h
index 64587c5c..41ebfe00 100644
--- a/src/DuetNG/SX1509.h
+++ b/src/DuetNG/SX1509.h
@@ -233,11 +233,9 @@ public:
// Output: 16-bit value, with a single bit set representing the pin(s) that
// generated an interrupt. E.g. a return value of 0x0104 would mean pins 8
// and 3 (bits 8 and 3) have generated an interrupt.
- // Input:
- // - clear: boolean commanding whether the interrupt should be cleared
- // after reading or not.
// -----------------------------------------------------------------------------
- uint16_t interruptSource(bool clear);
+ uint16_t interruptSource();
+ uint16_t interruptSourceAndClear();
// -----------------------------------------------------------------------------
// checkInterrupt(void): Checks if a single pin generated an interrupt.