diff options
author | Joel Challis <git@zvecr.com> | 2022-11-27 02:05:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 02:05:04 +0000 |
commit | cb57ec9c02ffebe5abeba266eb9eaa3dfc2089d3 (patch) | |
tree | 4763a62dc1325510e79c048e68d40fce6c5cfe66 /lib/usbhost/USB_Host_Shield_2.0/SPP.cpp | |
parent | 9b51f02f45f72758a61d761c2d8e1b1696cce6e8 (diff) |
Revert lib/usbhost changes (#19165)
Diffstat (limited to 'lib/usbhost/USB_Host_Shield_2.0/SPP.cpp')
-rw-r--r-- | lib/usbhost/USB_Host_Shield_2.0/SPP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/usbhost/USB_Host_Shield_2.0/SPP.cpp b/lib/usbhost/USB_Host_Shield_2.0/SPP.cpp index 8169707661..0f4ee5e981 100644 --- a/lib/usbhost/USB_Host_Shield_2.0/SPP.cpp +++ b/lib/usbhost/USB_Host_Shield_2.0/SPP.cpp @@ -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 } |