From 011ee863cc5bc1d6b9d9fcfc70595c78ed76f11d Mon Sep 17 00:00:00 2001 From: pgp Date: Sat, 23 Jan 2021 16:58:16 +0100 Subject: [PATCH] =?UTF-8?q?r=C3=A9-int=C3=A9gration=20de=20v=C3=A9rif=20RT?= =?UTF-8?q?C=20suite=20=C3=A0=20la=20r=C3=A9solution=20du=20bug=20#001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3c08825..17ca6db 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -348,10 +348,10 @@ void rtc_init() { // ESP.restart(); //while (1); } - /* if (rtc.lostPower()) { + if (rtc.lostPower()) { Serial.println("Veuillez régler l'heure et vérifier la pile du module RTC!"); // ligne de debug à commenter en prod errorCode(2); - }*/ + } else { //DateTime now = rtc.now(); //