fix error message then \n insert JSON String

This commit is contained in:
Marko Oldenburg 2017-12-13 08:56:54 +01:00
parent 7e08c559b9
commit 3e7eab52e3

View File

@ -47,7 +47,7 @@ use JSON;
use Blocking;
my $version = "1.2.4";
my $version = "1.2.5";
my %CallBatteryFirmwareAge = ( '8h' => 28800,
'16h' => 57600,
'24h' => 86400,
@ -663,7 +663,10 @@ sub XiaomiFlowerSens_ProcessingErrors($$) {
sub XiaomiFlowerSens_encodeJSON($) {
my $gtResult = shift;
chomp($gtResult);
my %response = (
'gtResult' => $gtResult
);