load and display tankinfo on ui
This commit is contained in:
@@ -139,8 +139,17 @@ export class PlantView {
|
||||
}
|
||||
|
||||
update(a: number, b: number) {
|
||||
this.moistureA.innerText = String(a)
|
||||
this.moistureB.innerText = String(b)
|
||||
if (a = 200){
|
||||
this.moistureA.innerText = "error"
|
||||
} else {
|
||||
this.moistureA.innerText = String(a)
|
||||
}
|
||||
|
||||
if (b = 200){
|
||||
this.moistureB.innerText = "error"
|
||||
} else {
|
||||
this.moistureB.innerText = String(b)
|
||||
}
|
||||
}
|
||||
|
||||
setConfig(plantConfig: PlantConfig) {
|
||||
|
||||
Reference in New Issue
Block a user