Compare commits

1 Commits

Author SHA1 Message Date
Christian Mittring
2b4297e877 Fixed Alarm2 and Month Bug 2018-02-17 15:11:22 +01:00
3 changed files with 7 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ void set_alarm1(){
void set_alarm2(){ void set_alarm2(){
Clock.setA2Time(0, al2h, al2m, 100, true, false, false); Clock.setA2Time(0, al2h, al2m, 0b1000000, true, false, false);
//Clock.turnOnAlarm(1); //Clock.turnOnAlarm(1);
byte A1Day, A1Hour, A1Minute, AlarmBits; byte A1Day, A1Hour, A1Minute, AlarmBits;
bool A1Dy, A1h12, A1PM; bool A1Dy, A1h12, A1PM;

View File

@@ -239,8 +239,8 @@ void add_minute(int i){
void add_month(int i){ void add_month(int i){
M = M + i; M = M + i;
if (m > 12){ if (M > 12){
m = 1; M = 1;
} }
} }

View File

@@ -62,6 +62,8 @@ void setup() {
delay(400); delay(400);
display_text("Uhr"); display_text("Uhr");
WiFi.hostname(NodeName);
//WiFi.mode(WIFI_OFF);
//WiFiManager intialisation. Once completed there is no need to repeat the process on the current board //WiFiManager intialisation. Once completed there is no need to repeat the process on the current board
WiFiManager wifiManager; WiFiManager wifiManager;
wifiManager.autoConnect(); wifiManager.autoConnect();
@@ -118,7 +120,8 @@ void setup() {
//------------------------------------------------- //-------------------------------------------------
//OTA //OTA
// No authentication by default // No authentication by default
ArduinoOTA.setPassword((const char *)"ota-password"); ArduinoOTA.setPassword(NodeName.c_str());
ArduinoOTA.setHostname(NodeName.c_str());
ArduinoOTA.onStart([]() { ArduinoOTA.onStart([]() {
Serial.println("Start"); Serial.println("Start");