Fixed Alarm2 and Month Bug

This commit is contained in:
Christian Mittring
2018-02-17 15:11:22 +01:00
parent ab5647d9c9
commit 2b4297e877
3 changed files with 7 additions and 4 deletions

View File

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

View File

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

View File

@@ -62,6 +62,8 @@ void setup() {
delay(400);
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 wifiManager;
wifiManager.autoConnect();
@@ -118,7 +120,8 @@ void setup() {
//-------------------------------------------------
//OTA
// No authentication by default
ArduinoOTA.setPassword((const char *)"ota-password");
ArduinoOTA.setPassword(NodeName.c_str());
ArduinoOTA.setHostname(NodeName.c_str());
ArduinoOTA.onStart([]() {
Serial.println("Start");