Skip to content

Commit 46ff43d

Browse files
committed
fix: consolidate preprocessor directives for I2C priority function
1 parent 8fe83a5 commit 46ff43d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Modulino.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ModulinoColor GREEN(0, 255, 0);
1313
ModulinoColor VIOLET(255, 0, 255);
1414
ModulinoColor WHITE(255, 255, 255);
1515

16-
#if __has_include("Arduino_LED_Matrix.h")
17-
#if defined(ARDUINO_UNOR4_WIFI)
16+
#if __has_include("Arduino_LED_Matrix.h") && defined(ARDUINO_UNOR4_WIFI)
1817
void __increaseI2CPriority() {
1918
for (int i = 0; i < 96; i++) {
2019
if (R_ICU->IELSR[i] == BSP_PRV_IELS_ENUM(EVENT_IIC0_TXI)) {
@@ -25,7 +24,6 @@ void __increaseI2CPriority() {
2524
}
2625
}
2726
}
28-
#endif
2927
#else
3028
void __increaseI2CPriority() {}
3129
#endif

0 commit comments

Comments
 (0)