desc:报警提示

main
xiaowusky 1 year ago
parent 2edcc0d027
commit dd554499a5

@ -235,9 +235,9 @@ fun getShowWarnTxt(warn: Warning?): String {
"请注意,${it.gasName}浓度过高,已超过传感器量程"
} else {
if (it.gasValue > it.thresholdHigh) {
"请注意,${it.gasName}气体浓度:${it.gasValue} ${it.unit}超过高报值${it.thresholdHigh}"
"请注意,${it.gasName}气体浓度:${it.gasValue} ${it.unit}超过高报值${it.thresholdHigh} ${it.unit}"
} else {
"请注意,${it.gasName}气体浓度:${it.gasValue} ${it.unit}超过高报值${it.thresholdLow}"
"请注意,${it.gasName}气体浓度:${it.gasValue} ${it.unit}超过低报值${it.thresholdLow} ${it.unit}"
}
}
}

Loading…
Cancel
Save