daytime: 06:00 to 21:59

This commit is contained in:
Joerg Lehmann 2020-03-21 10:41:24 +01:00
parent f56c90fc13
commit 9e79787a41
1 changed files with 1 additions and 1 deletions

View File

@ -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) {