mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
88_Timer: fixed PERL WARNING: Use of uninitialized value
git-svn-id: https://svn.fhem.de/fhem/trunk@20729 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
57668b2a78
commit
3ce0fa3da7
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 88_Timer: fix PERL WARNING: Use of uninitialized value
|
||||
- bugfix: 73_AutoShuttersControl: fix SelfDefense drive up then coming home
|
||||
up at night
|
||||
- feature: 30_HUEBridge, 31_HUEDevice: added deCONZ scenes (by shadowghost)
|
||||
|
@ -760,8 +760,8 @@ sub FW_pushed_savebutton {
|
||||
}
|
||||
}
|
||||
|
||||
return "ERROR: The time is in the past. Please set a time in the future!" if ((time() - fhemTimeLocal($sec, $min, $hour, $mday, $month, $year)) > 0);
|
||||
return "ERROR: The next switching point is too small!" if ((fhemTimeLocal($sec, $min, $hour, $mday, $month, $year) - time()) < 60);
|
||||
return "ERROR: The time is in the past. Please set a time in the future!" if ((time() - fhemTimeLocal($sec, $min, $hour, $mday, $month - 1, $year)) > 0);
|
||||
return "ERROR: The next switching point is too small!" if ((fhemTimeLocal($sec, $min, $hour, $mday, $month - 1, $year) - time()) < 60);
|
||||
|
||||
readingsDelete($hash,"Timer_".sprintf("%02s", $timer)."_set") if ($selected_buttons[8] ne "DEF" && ReadingsVal($name, "Timer_".sprintf("%02s", $timer)."_set", 0) ne "0");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user