Skip to content

Commit b849525

Browse files
sandeepmistrycmaglie
authored andcommitted
Add error if I2S is not supported by the variant
1 parent cfbb612 commit b849525

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/I2S/src/I2S.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class I2SClass : public Stream
107107

108108
#if I2S_INTERFACES_COUNT > 0
109109
extern I2SClass I2S;
110+
#else
111+
#error "I2S is not supported on your board!"
110112
#endif
111113

112114
#endif

0 commit comments

Comments
 (0)