2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhem.pl: remove the optional WriteStatefile Parameter (Forum #123764)

git-svn-id: https://svn.fhem.de/fhem/trunk@25161 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-10-30 19:23:18 +00:00
parent f5fdc01984
commit 0b16625ba9

View File

@ -101,7 +101,7 @@ sub SemicolonEscape($);
sub SignalHandling();
sub TimeNow();
sub Value($);
sub WriteStatefile(;$);
sub WriteStatefile();
sub XmlEscape($);
sub addEvent($$;$);
sub addToDevAttrList($$;$);
@ -1593,14 +1593,13 @@ GetAllReadings($)
#####################################
sub
WriteStatefile(;$)
WriteStatefile()
{
if(configDBUsed()) {
return cfgDB_SaveState();
}
my $stateFile = AttrVal('global','statefile',undef);
$stateFile = $_[0] if($_[0]); #123764
return "No statefile specified" if(!defined($stateFile));
my $now = gettimeofday();