revert last change

This commit is contained in:
Joerg Lehmann 2021-04-29 18:57:15 +02:00
parent eeac154a06
commit 6b95624b3e
1 changed files with 3 additions and 1 deletions

View File

@ -501,7 +501,9 @@ func WriteDatapoint(mytime int64, deveui string, devaddr string, v uint8, h uint
vp = 100
}
sv = fmt.Sprintf("v=%di,vp=%di,", int32(v)*7+2510, vp)
if v > 0 {
sv = fmt.Sprintf("v=%di,vp=%di,", int32(v)*7+2510, vp)
}
s := ""
sfw := ""