Browse code

log newline fix

Liviu Pislaru authored on 15/09/2018 23:39:04
Showing 1 changed files
... ...
@@ -111,7 +111,7 @@ while (my $mqttMessage = <$SUB> ) {
111 111
           my ($sec,$min,$hour,$mday,$mon,$year)=localtime(time);
112 112
           my $timestamp = sprintf ( "%04d-%02d-%02d %02d:%02d:%02d", $year+1900,$mon+1,$mday,$hour,$min,$sec);
113 113
           addRF ($topic, $decoded->{'RfReceived'}{'Sync'}, $decoded->{'RfReceived'}{'Low'}, $decoded->{'RfReceived'}{'High'}, $decoded->{'RfReceived'}{'Data'}, $timestamp);
114
-          my $script="php /admin/scripts/mqttparser/rf433.php $topic $decoded->{'RfReceived'}{'Data'}";
114
+          my $script="php /admin/scripts/mqttparser/rf433.php $topic $decoded->{'RfReceived'}{'Data'}\n";
115 115
           runSCRIPT ($script);
116 116
         }
117 117
       }