From ba07ab7bcdd8756e75453726dc1aadaf773a43b0 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Oct 2017 09:37:36 +0200 Subject: [PATCH] Fix overriding motheure data file --- feature/motheure-simple/source/loop.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/feature/motheure-simple/source/loop.php b/feature/motheure-simple/source/loop.php index 72bedc1..acd6983 100644 --- a/feature/motheure-simple/source/loop.php +++ b/feature/motheure-simple/source/loop.php @@ -104,9 +104,7 @@ /* [2] Main loop =========================================================*/ /* (1) Log action to default log file */ - $f_data->fwrite( json_encode([ - floor( $stop_ts - $start_ts ) - ]).PHP_EOL ); + $f_data->fwrite( "[" . floor( $stop_ts - $start_ts ) ."]\n" ); slog("Motor stop", 'motheure-simple:loop', 'motheure'); /* (2) Return status */