From d4342a41d2972c20892c793f2ce015e6eafc70ed Mon Sep 17 00:00:00 2001 From: David Crocker Date: Tue, 10 Dec 2019 13:06:55 +0000 Subject: More noexcept specifiers --- src/Hardware/I2C.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Hardware/I2C.cpp') 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) -- cgit v1.2.3