diff --git a/library.properties b/library.properties index 3e62fec..c29604b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_Modulino -version=0.6.0 +version=0.6.1 author=Arduino maintainer=Arduino sentence=Arduino Library for Modulinos diff --git a/src/Modulino.cpp b/src/Modulino.cpp index b0b1997..da02449 100644 --- a/src/Modulino.cpp +++ b/src/Modulino.cpp @@ -13,8 +13,7 @@ ModulinoColor GREEN(0, 255, 0); ModulinoColor VIOLET(255, 0, 255); ModulinoColor WHITE(255, 255, 255); -#if __has_include("Arduino_LED_Matrix.h") -#if defined(ARDUINO_UNOR4_WIFI) +#if __has_include("Arduino_LED_Matrix.h") && defined(ARDUINO_UNOR4_WIFI) void __increaseI2CPriority() { for (int i = 0; i < 96; i++) { if (R_ICU->IELSR[i] == BSP_PRV_IELS_ENUM(EVENT_IIC0_TXI)) { @@ -25,7 +24,6 @@ void __increaseI2CPriority() { } } } -#endif #else void __increaseI2CPriority() {} #endif \ No newline at end of file