diff options
Diffstat (limited to 'src/Hardware/I2C.cpp')
-rw-r--r-- | src/Hardware/I2C.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hardware/I2C.cpp b/src/Hardware/I2C.cpp index c9369f0b..aca1c810 100644 --- a/src/Hardware/I2C.cpp +++ b/src/Hardware/I2C.cpp @@ -13,7 +13,7 @@ static bool i2cInitialised = false; #endif // Initialise the I2C interface, if not already done -void I2C::Init() +void I2C::Init() noexcept { #if defined(I2C_IFACE) if (!i2cInitialised) @@ -46,7 +46,7 @@ extern "C" void WIRE_ISR_HANDLER() noexcept } } -uint32_t I2C::statusWaitFunc(Twi *twi, uint32_t bitsToWaitFor) +uint32_t I2C::statusWaitFunc(Twi *twi, uint32_t bitsToWaitFor) noexcept { uint32_t sr = twi->TWI_SR; if ((sr & bitsToWaitFor) == 0) |