From 1c438c74748468c5ca514182a7e18e647d917a17 Mon Sep 17 00:00:00 2001 From: Puissegur Alexis <alexis.puissegur@insa-rennes.fr> Date: Sun, 9 Dec 2018 11:52:02 +0100 Subject: [PATCH] core --- core/thingz.ino.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/thingz.ino.txt b/core/thingz.ino.txt index 35362af..50b98d5 100644 --- a/core/thingz.ino.txt +++ b/core/thingz.ino.txt @@ -10,7 +10,7 @@ #define HEADER_LIGHT_ON "LIGHT" #define HEADER_SOUND_ON "SOUND" #define REMAINING_TIME 300000 // 5MIN -#define DATASPAN 300000 // 5MIN +#define DATASPAN 10000 // 5MIN #define ALARMSPAN 10000 // 10SEC #define FAb4 740 #define LAb4 932 @@ -92,7 +92,8 @@ void receiveFromBluetooth() { if (bluetooth.dataAvailable()){ buffer = bluetooth.receive(); } - + + monEcran1.printMsg(buffer,0); if (buffer.startsWith(HEADER_LIGHT_ON)){ dealWithLight(); } @@ -129,7 +130,6 @@ void setup() humi = 0; humiTerre = 0; timeStamp = 0; - ledHasBeenTurnedOn = false; alarmHasBeenTurnedOn = false; timePushed = 0; -- GitLab