From bd42ae6e749e356aa03ab433a067f6ce3de83cfa Mon Sep 17 00:00:00 2001 From: Brett Morrison Date: Mon, 22 Feb 2016 01:33:14 -0800 Subject: [PATCH] Fixed control flow issue with loop --- TeslaCommand.go | 1 + 1 file changed, 1 insertion(+) diff --git a/TeslaCommand.go b/TeslaCommand.go index 586a812..e3353da 100644 --- a/TeslaCommand.go +++ b/TeslaCommand.go @@ -93,6 +93,7 @@ func main() { // If the distance is outside the radius, that means vehicle is outside the GeoFence. Ok to get out if distance > float64(radius) { ingeofence = false + continue } // This is to prevent the below logic, if it's already executed, no need to keep doing it