use v even if it is 0

This commit is contained in:
Joerg Lehmann 2021-04-29 18:17:23 +02:00
parent cc71a508e2
commit eeac154a06
1 changed files with 1 additions and 3 deletions

View File

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