We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4722c50 commit 3ee54cbCopy full SHA for 3ee54cb
hal/mbed_sai_api.c
@@ -92,8 +92,9 @@ const sai_format_t sai_mode_pcm16s = {
92
};
93
94
95
-bool sai_check_sanity(sai_init_t *init) {
96
- return (init != NULL) &&
+bool sai_check_sanity(sai_init_t *init)
+{
97
+ return (init != NULL) &&
98
(init->sample_rate != 0) &&
99
(init->format.ws_length <= init->format.word_length) &&
100
(init->format.bit_shift <= (init->format.word_length - init->format.data_length)) &&
0 commit comments