[chronojump] Wifi. By default the terminal is in unlimited mode



commit eda471649e523df740b509a9ffde458f49b6a2fc
Author: Xavier Padullés <x padulles gmail com>
Date:   Mon Aug 23 12:57:49 2021 +0200

    Wifi. By default the terminal is in unlimited mode

 arduino/lightChro/control/control.ino   | 2 +-
 arduino/lightChro/terminal/terminal.ino | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/arduino/lightChro/control/control.ino b/arduino/lightChro/control/control.ino
index 7e0be3197..f77074a76 100644
--- a/arduino/lightChro/control/control.ino
+++ b/arduino/lightChro/control/control.ino
@@ -128,7 +128,7 @@ void setup(void)
   radio.setChannel(control0Channel - controlSwitch);
   radio.openWritingPipe(pipes[0]);
   radio.openReadingPipe(1, pipes[1]);
-  radio.stopListening();
+  radio.startListening();
   
 //  Serial.println(" Status Radio");
 //  radio.printDetails();
diff --git a/arduino/lightChro/terminal/terminal.ino b/arduino/lightChro/terminal/terminal.ino
index a65bd991a..251e99a01 100644
--- a/arduino/lightChro/terminal/terminal.ino
+++ b/arduino/lightChro/terminal/terminal.ino
@@ -49,7 +49,7 @@ const uint16_t buzzer =           0b00010000; // 16
 const uint16_t blinkRed =         0b00001000; //8
 const uint16_t blinkGreen =       0b00000100; //4
 const uint16_t blinkBlue =        0b00000010; //2
-const uint16_t sensorOnce =           0b00000001; //1
+const uint16_t sensorOnce =       0b00000001; //1
 const uint16_t deactivate =       0b00000000; //0
 
 struct instruction_t instruction = {.command = deactivate, .termNum = 0};
@@ -79,7 +79,7 @@ uint8_t terminal0Channel = 116; //TODO: Select the listening channel with the sw
 uint8_t control0Channel = 125; //Channel resulting of the switch at zero state
 uint8_t controlSwitch = 0;      //State of the 3xswithes
 
-bool waitingSensor = false; //Wether the sensor is activated or not
+bool waitingSensor = true; //Wether the sensor is activated or not
 bool unlimitedMode = true;
 
 //Variables to control the blinking of each Color
@@ -188,6 +188,7 @@ void setup(void)
   green_off;
   blue_off;
 
+
 //  noInterrupts();   //Don't watch the sensor state
 
 //  Serial.print("Is chip connected:");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]