the problem is i want to set and reset it every 2 hours and every state hold its value for 2 hours
for example
for example
Code:
if( hour=1&minute=59)/// this will set it every 2 hours but it will reset after 1 minute when the condition is false.
{
set
}
else
{
reset /// for two hours
}