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 3a4ec66 commit bd0227aCopy full SHA for bd0227a
libraries/BluetoothSerial/src/BluetoothSerial.cpp
@@ -201,15 +201,15 @@ int BluetoothSerial::read(void)
201
{
202
if (available()){
203
if (!client || SerialQueueBT == NULL){
204
- return 0;
+ return -1;
205
}
206
207
uint8_t c;
208
if (xQueueReceive(SerialQueueBT, &c, 0)){
209
return c;
210
211
212
213
214
215
size_t BluetoothSerial::write(uint8_t c)
0 commit comments