2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-05 23:58:44 +00:00

FRM_LCD: fix restore of writeXY state

git-svn-id: https://svn.fhem.de/fhem/trunk@5250 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-03-17 22:18:42 +00:00
parent 6eac2835f0
commit c55a5c5639

View File

@ -85,7 +85,7 @@ FRM_LCD_Init($)
if (AttrVal($hash->{NAME},"restoreOnReconnect","on") eq "on") {
foreach my $reading (("display","scroll","backlight","text","writeXY")) {
if (defined (my $value = ReadingsVal($name,$reading,undef))) {
FRM_LCD_Set($hash,$name,$reading,$value);
FRM_LCD_Set($hash,$name,$reading,split " ", $value);
}
}
}
@ -268,7 +268,7 @@ sub FRM_LCD_Set(@) {
$t = ($al eq "l") ? $t.$dif : $dif.$t;
}
$lcd->print($t);
main::readingsSingleUpdate($hash,"writeXY",$value,1);
main::readingsSingleUpdate($hash,"writeXY",$value." ".$t,1);
readingsSingleUpdate($hash,"state",$t,1);
last; #"X=$x|Y=$y|L=$l|Text=$t";
};