From 004569045997f8a425137d0205790c94707b8930 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 3 Apr 2020 17:16:42 +0200 Subject: gps-track: use $LogPrintExit --- gps-track | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gps-track') diff --git a/gps-track b/gps-track index 4a27eb8..f839eac 100644 --- a/gps-track +++ b/gps-track @@ -8,6 +8,8 @@ :global GpsTrackUrl; :global Identity; +:global LogPrintExit; + :local CoordinateFormat [ /system gps get coordinate-format ]; :local Gps [ / system gps monitor once as-value ]; @@ -20,9 +22,9 @@ if ($Gps->"valid" = true) do={ "\"lon\":\"" . ($Gps->"longitude") . "\"," . \ "\"identity\":\"" . $Identity . "\"" . \ "}"); - :log debug ("Sending GPS data in " . $CoordinateFormat . " format: " . \ + $LogPrintExit debug ("Sending GPS data in " . $CoordinateFormat . " format: " . \ "lat: " . ($Gps->"latitude") . " " . \ - "lon: " . ($Gps->"longitude")); + "lon: " . ($Gps->"longitude")) false; } else={ - :log debug ("GPS data not valid."); + $LogPrintExit debug ("GPS data not valid.") false; } -- cgit v1.2.3-70-g09d2