From d11a1f65f5239e8ed8d4b71d26dbc3b5020a0016 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 24 Oct 2016 10:52:43 +0000 Subject: [PATCH] fhem.pl: fix WrteStateFile Error (Forum #59547/#59541) git-svn-id: https://svn.fhem.de/fhem/trunk@12420 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 8f3c1acf3..ce6c4035a 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -1421,7 +1421,7 @@ WriteStatefile() } my @arr = GetAllReadings($d); - printf SFH join(@arr, "\n") if(@arr); + printf SFH join("\n", @arr)."\n" if(@arr); } return "$attr{global}{statefile}: $!" if(!close(SFH));