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 3c0a406 commit 069fa0fCopy full SHA for 069fa0f
STM32F1/libraries/Serasidis_VS1003B_STM/src/VS1003_STM.cpp
@@ -159,8 +159,10 @@ void VS1003::sdi_send_zeroes(size_t len)
159
data_mode_on();
160
size_t chunk_length = min(len,vs1003_chunk_size);
161
len -= chunk_length;
162
- while (chunk_length--)
163
- my_SPI->transfer(0);
+ // DO NOT optimize these lines !!! There must be a 1us delay between bytes
+ do {
164
+ my_SPI->write(0);
165
+ } while (--chunk_length);
166
data_mode_off();
167
}
168
0 commit comments