This is a problem:
relayFlag = (now.hour()*60) + now.minute() + now.second();
You are converting hours to minutes and adding minutes and seconds. You need to convert hours and minutes to seconds and then add seconds ![]()
This is a problem:
relayFlag = (now.hour()*60) + now.minute() + now.second();
You are converting hours to minutes and adding minutes and seconds. You need to convert hours and minutes to seconds and then add seconds ![]()