load and display tankinfo on ui

This commit is contained in:
2025-03-21 23:25:30 +01:00
parent 110cb50098
commit db27de3073
7 changed files with 200 additions and 8 deletions

View File

@@ -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) {