|
|
|
@ -57,7 +57,7 @@ fun saveLowThreshold(gasType: String, value: Float, localGasUnit: String) {
|
|
|
|
|
fun saveHighThreshold(gasType: String, value: Float, localGasUnit: String) {
|
|
|
|
|
var localValue = value
|
|
|
|
|
if (O2 == gasType || CH4_H2 == gasType || VOCS == gasType) {
|
|
|
|
|
MMKVUtils.put(getLowThresHoldKey(gasType), localValue)
|
|
|
|
|
MMKVUtils.put(getHighThresHoldKey(gasType), localValue)
|
|
|
|
|
} else {
|
|
|
|
|
if (UNIT_MGM3 == localGasUnit) {
|
|
|
|
|
val typeEnum = getGasTypeEnumByDesc(gasType)
|
|
|
|
|