diff options
author | Christian Hesse <mail@eworm.de> | 2020-04-03 17:16:42 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-04-03 17:16:42 +0200 |
commit | 004569045997f8a425137d0205790c94707b8930 (patch) | |
tree | ca4211b7bbde264180a37b4b3d92752e3d6efe6a | |
parent | df177212d1ee91cb6ca5af234866c8db77d9438d (diff) |
gps-track: use $LogPrintExit
-rw-r--r-- | gps-track | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |