Skip to content

Commit

Permalink
La vitesse du port série pour la TIC était initialisé avant lecture d…
Browse files Browse the repository at this point in the history
…e la conf
  • Loading branch information
Jonathan ROUSSEAU committed Jan 30, 2019
1 parent 5436be9 commit 257fd97
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions remora_soft.ino
Original file line number Diff line number Diff line change
Expand Up @@ -467,17 +467,6 @@ void mysetup()

#elif defined (ESP8266)

// Init de la téléinformation
#ifdef MOD_TELEINFO
if (strcmp(config.compteur_modele, "linky") && strcmp(config.compteur_tic, "standard")) {
Debugln("TIC standard : Serial 9600 bps");
Serial.begin(9600, SERIAL_7E1);
}
else {
Debugln("Tic historique : Serial 1200 bps");
Serial.begin(1200, SERIAL_7E1);
}
#endif

// Clear our global flags
config.config = 0;
Expand Down Expand Up @@ -530,6 +519,18 @@ void mysetup()
rgb_brightness = config.led_bright;
DebugF("RGB Brightness: "); Debugln(rgb_brightness);

// Init de la téléinformation
#ifdef MOD_TELEINFO
if (strcmp(config.compteur_modele, "linky") && strcmp(config.compteur_tic, "standard")) {
Debugln("TIC standard : Serial 9600 bps");
Serial.begin(9600, SERIAL_7E1);
}
else {
Debugln("Tic historique : Serial 1200 bps");
Serial.begin(1200, SERIAL_7E1);
}
#endif

// Connection au Wifi ou Vérification
WifiHandleConn(true);

Expand Down

0 comments on commit 257fd97

Please sign in to comment.