Skip to content

Commit e7fdea9

Browse files
committed
Display error when using invalid bits
1 parent f9038d6 commit e7fdea9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Driver.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class CodecConfig : public codec_config_t {
8989
i2s.bits = BIT_LENGTH_32BITS;
9090
return true;
9191
}
92+
AD_LOGE("bits not supported: %d", bits);
9293
return false;
9394
}
9495

@@ -119,6 +120,7 @@ class CodecConfig : public codec_config_t {
119120
i2s.channels = (channels_t)channels;
120121
return true;
121122
default:
123+
AD_LOGE("Channels not supported: %d - using %d", channels,2);
122124
i2s.channels = CHANNELS2;
123125
return false;
124126
}

0 commit comments

Comments
 (0)