Skip to content

Commit 4c0be94

Browse files
authored
Update CSI1.plugin.txt
1 parent c1e7926 commit 4c0be94

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CSI1.plugin.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function getStep3(token){
135135
var JsonObject= JSON.parse(JsonString)
136136
var today2
137137
currentPower = parseInt(JsonObject.data[0].generationPower)
138+
if(currentPower<20)currentPower = 0
138139
today2 = parseInt(JsonObject.data[0].generationValue)
139140
totalValue = parseInt(JsonObject.data[0].generationTotal)
140141
parseReturnData(currentPower,totalValue,today2,0,0,0,0,xhr.status,"succes")

0 commit comments

Comments
 (0)