mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fix: tipo
git-svn-id: https://svn.fhem.de/fhem/trunk@23374 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0b6de88400
commit
da1caadf89
@ -48,6 +48,7 @@ sub systemd_watchdog_Initialize($) {
|
|||||||
$hash->{UndefFn} = "watchdog_client_Undefine";
|
$hash->{UndefFn} = "watchdog_client_Undefine";
|
||||||
$hash->{ShutdownFn} = "watchdog_client_Shutdown";
|
$hash->{ShutdownFn} = "watchdog_client_Shutdown";
|
||||||
$hash->{NotifyFn} = "watchdog_client_Notify";
|
$hash->{NotifyFn} = "watchdog_client_Notify";
|
||||||
|
$hash->{AttrList} = $readingFnAttributes;
|
||||||
|
|
||||||
#Log3($hash->{NAME},5,"Watchdog Client: Debug: watchdog_client_Initialize");
|
#Log3($hash->{NAME},5,"Watchdog Client: Debug: watchdog_client_Initialize");
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
@ -86,7 +87,7 @@ sub watchdog_client_Define($$) {
|
|||||||
} else {
|
} else {
|
||||||
$hash->{'systemd-watchdog'}="not available";
|
$hash->{'systemd-watchdog'}="not available";
|
||||||
$hash->{'.systemd'}=undef;
|
$hash->{'.systemd'}=undef;
|
||||||
Log3($hash->{NAME},1,"Watchdog Client: systemd watchdog is not available. Module inactiv.");
|
Log3($hash->{NAME},1,"Watchdog Client: systemd watchdog is not available. Module inactive.");
|
||||||
}
|
}
|
||||||
# Initialize
|
# Initialize
|
||||||
watchdog_client_Start($hash);
|
watchdog_client_Start($hash);
|
||||||
@ -160,7 +161,7 @@ sub watchdog_client_Start($) {
|
|||||||
|
|
||||||
unless (watchdog_client_IsWDAvailable($hash)) {
|
unless (watchdog_client_IsWDAvailable($hash)) {
|
||||||
Log3($hash->{NAME},2,"Watchdog Client: no systemd watchdog available");
|
Log3($hash->{NAME},2,"Watchdog Client: no systemd watchdog available");
|
||||||
readingsSingleUpdate($hash,"state","inactiv",1);
|
readingsSingleUpdate($hash,"state","inactive",1);
|
||||||
readingsSingleUpdate($hash,"next","none",1);
|
readingsSingleUpdate($hash,"next","none",1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user