Revert lib/usbhost changes (#19165)
This commit is contained in:
parent
9b51f02f45
commit
cb57ec9c02
5 changed files with 5 additions and 5 deletions
|
@ -757,7 +757,7 @@ size_t SPP::write(const uint8_t *data, size_t size) {
|
|||
void SPP::write(const uint8_t *data, size_t size) {
|
||||
#endif
|
||||
for(uint8_t i = 0; i < size; i++) {
|
||||
if(sppIndex >= ARRAY_SIZE(sppOutputBuffer))
|
||||
if(sppIndex >= sizeof (sppOutputBuffer) / sizeof (sppOutputBuffer[0]))
|
||||
send(); // Send the current data in the buffer
|
||||
sppOutputBuffer[sppIndex++] = data[i]; // All the bytes are put into a buffer and then send using the send() function
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue