diff --git a/src/main.cpp b/src/main.cpp index 41f3bdc..670c3b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,7 +12,7 @@ Basé sur Arduino Nano (Atmel MEGA328P) - Service Slave Seulement #define CUIZZ_HC12SERIAL_TX 10 -SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX) +SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX); void setup() { // Initialisation @@ -32,7 +32,7 @@ void setup() { void loop() { if (HC12.available()) { - Serial.write(mySerial.read()); + Serial.write(HC12.read()); } if (Serial.available()) { HC12.write(Serial.read());