mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
57_Calendar: calendar event anymore in modeAlarmed if started
git-svn-id: https://svn.fhem.de/fhem/trunk@6655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8f7b4a0921
commit
029ea74fe3
@ -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: 57_Calendar: calendar event anymore in modeAlarmed if started
|
||||
- feature: 57_Calendar: deal with non-existent end times
|
||||
- bugfix: SOMFY: fix non-working on/off-for-timer methods
|
||||
made positioning attributes optional
|
||||
|
@ -615,7 +615,7 @@ sub isAlarmed {
|
||||
my ($self,$t) = @_;
|
||||
return 0 if($self->isDeleted());
|
||||
return $self->{alarm} ?
|
||||
(($self->{alarm}<= $t && $t<= $self->{start}) ? 1 : 0) : 0;
|
||||
(($self->{alarm}<= $t && $t< $self->{start}) ? 1 : 0) : 0;
|
||||
}
|
||||
|
||||
# return 1 if time is between start time and end time, else 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user