You are making things hard for yourself and writing much more code than you need to. You need to look at the bascom help and read about LsysSec which is a long variable that represents the system seconds this is incremented by an interrupt each second then bascom can give you the date, time, day, hour , minute, second from this so you do not have to compare hours and minutes just the value of a long against the LsysSec, bascom does all the conversions for you.
Regards Paul
↧