diff --git a/lorahandler.go b/lorahandler.go index 0c3ab17..266b3db 100644 --- a/lorahandler.go +++ b/lorahandler.go @@ -280,7 +280,7 @@ func DecodePayload(s string, deveui string, devaddr string, lrrlat float32, lrrl func IsDayTime() bool { hours, _, _ := time.Now().Clock() - return ((hours >= 6) && (hours <= 22)) + return ((hours >= 6) && (hours < 22)) } func WriteDatapoint(mytime int64, deveui string, devaddr string, v uint8, h uint8, p uint8, w uint16, w1 int32, w2 int32, t int16, lrrlat float32, lrrlon float32, fw_version int32, w1_0 int32, w2_0 int32, w1_c float32, w2_c float32) {