From 4960fc86e9792dc081fec3996d3740bafef2a703 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Mon, 19 Apr 2021 17:24:09 +0200 Subject: [PATCH] re-enable data with no GPS position --- wo-bisch-lorahandler.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wo-bisch-lorahandler.go b/wo-bisch-lorahandler.go index 485a31e..acca198 100644 --- a/wo-bisch-lorahandler.go +++ b/wo-bisch-lorahandler.go @@ -95,11 +95,7 @@ func DecodePayload(s string, deveui string) { mystring := fmt.Sprintf("measurement,deveui=%s lat=%.5f,lon=%.5f,vbat=%d,fw=%d %d\n", deveui, float32(pl.Latitude)/1000000.0, float32(pl.Longitude)/1000000.0, vbat, fw, (time.Now().Unix() * 1000 * 1000 * 1000)) - if pl.Longitude == 0 { - fmt.Printf("Meaurement without GPS Position: %s", mystring) - } else { - WriteStringToFile(mystring, deveui) - } + WriteStringToFile(mystring, deveui) } else { log.Printf("Payload is not >= 11 bytes (22 chars): %s", s)