fix comparison in website
This commit is contained in:
parent
aec083bcef
commit
0e3549a755
@ -139,13 +139,13 @@ export class PlantView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update(a: number, b: number) {
|
update(a: number, b: number) {
|
||||||
if (a = 200){
|
if (a == 200){
|
||||||
this.moistureA.innerText = "error"
|
this.moistureA.innerText = "error"
|
||||||
} else {
|
} else {
|
||||||
this.moistureA.innerText = String(a)
|
this.moistureA.innerText = String(a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (b = 200){
|
if (b == 200){
|
||||||
this.moistureB.innerText = "error"
|
this.moistureB.innerText = "error"
|
||||||
} else {
|
} else {
|
||||||
this.moistureB.innerText = String(b)
|
this.moistureB.innerText = String(b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user