[JDY08] Fixed incorrect variable name
This commit is contained in:
parent
778b65360c
commit
bae7d787fe
1 changed files with 2 additions and 2 deletions
|
@ -22,11 +22,11 @@ void loop() {
|
||||||
// JDY08 supports all methods of the Serial class
|
// JDY08 supports all methods of the Serial class
|
||||||
// read data incoming from Serial port and write them to Bluetooth
|
// read data incoming from Serial port and write them to Bluetooth
|
||||||
while (Serial.available() > 0) {
|
while (Serial.available() > 0) {
|
||||||
bluetooth.write(Serial.read());
|
ble.write(Serial.read());
|
||||||
}
|
}
|
||||||
|
|
||||||
// read data incoming from Bluetooth and write them to Serial port
|
// read data incoming from Bluetooth and write them to Serial port
|
||||||
while (bluetooth.available() > 0) {
|
while (bluetooth.available() > 0) {
|
||||||
Serial.write(bluetooth.read());
|
Serial.write(ble.read());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue