mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
use different save file name if not json
git-svn-id: https://svn.fhem.de/fhem/trunk@3794 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bf655e07c3
commit
6e41dfe312
@ -226,7 +226,8 @@ myStatefileName()
|
||||
{
|
||||
my $statefile = $attr{global}{statefile};
|
||||
$statefile = substr $statefile,0,rindex($statefile,'/')+1;
|
||||
return $statefile ."LightScenes.save";
|
||||
return $statefile ."LightScenes.save" if( $LightScene_hasJSON );
|
||||
return $statefile ."LightScenes.dd.save";
|
||||
}
|
||||
my $LightScene_LastSaveTime="";
|
||||
sub
|
||||
@ -285,7 +286,6 @@ LightScene_Load($)
|
||||
next if($line =~ m/^#.*$/);
|
||||
$encoded .= $line;
|
||||
}
|
||||
|
||||
close(FH);
|
||||
|
||||
return if( !defined($encoded) );
|
||||
|
Loading…
Reference in New Issue
Block a user