From af67a9ce6bbb96d1cf95b8c5286d04171d80edd6 Mon Sep 17 00:00:00 2001 From: Prof Date: Thu, 3 Nov 2022 10:55:02 +0100 Subject: [PATCH] SLAVE FIN --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());