Skip to content

Commit 091977d

Browse files
authored
Updated BleBridge Example
1 parent e94514a commit 091977d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/BleSerial_Bridge/BleSerial_Bridge.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void ReadSerialTask(void *e) {
4949
auto count = Serial.readBytes(serialReadBuffer, BUFFER_SIZE);
5050
SerialBT.write(serialReadBuffer, count);
5151
}
52-
yield();
52+
delay(20);
5353
}
5454
}
5555

@@ -60,7 +60,7 @@ void ReadBtTask(void *e) {
6060
auto count = SerialBT.readBytes(bleReadBuffer, BUFFER_SIZE);
6161
Serial.write(bleReadBuffer, count);
6262
}
63-
yield();
63+
delay(20);
6464
}
6565
}
6666

0 commit comments

Comments
 (0)