Revert lib/usbhost changes (#19165)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user