2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +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:
justme-1968 2013-08-26 14:38:14 +00:00
parent bf655e07c3
commit 6e41dfe312

View File

@ -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) );