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 2dff76e commit 6c9e6aaCopy full SHA for 6c9e6aa
Firmware/RTK_Surveyor/Bluetooth.ino
@@ -109,7 +109,11 @@ bool bluetoothRxDataAvailable()
109
int bluetoothWrite(const uint8_t *buffer, int length)
110
{
111
#ifdef COMPILE_BT
112
- return bluetoothSerial->write(buffer, length);
+ //BLE write does not handle 0 length requests correctly
113
+ if(length > 0)
114
+ return bluetoothSerial->write(buffer, length);
115
+ else
116
+ return 0;
117
#else //COMPILE_BT
118
return 0;
119
#endif //COMPILE_BT
0 commit comments