|  |  |  | @ -3,6 +3,7 @@ package com.yinuo.safetywatcher.watcher.port | 
		
	
		
			
				|  |  |  |  | import android.content.Context | 
		
	
		
			
				|  |  |  |  | import com.common.commonlib.db.entity.Warning | 
		
	
		
			
				|  |  |  |  | import com.common.commonlib.utils.MMKVUtils | 
		
	
		
			
				|  |  |  |  | import com.common.commonlib.utils.forShowStr | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.R | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.port.cmd.CH4_H2 | 
		
	
		
			
				|  |  |  |  | import com.yinuo.safetywatcher.watcher.port.cmd.CL2 | 
		
	
	
		
			
				
					|  |  |  | @ -224,9 +225,9 @@ fun getShowWarnTxt(warn: Warning?): String { | 
		
	
		
			
				|  |  |  |  |                 "请注意,${it.gasName}浓度过高,已超过传感器量程" | 
		
	
		
			
				|  |  |  |  |             } else { | 
		
	
		
			
				|  |  |  |  |                 if (it.gasValue < it.thresholdLow) { | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}浓度过低:${it.gasValue} ${it.unit},有缺氧风险" | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}浓度过低:${it.gasValue.forShowStr()} ${it.unit},有缺氧风险" | 
		
	
		
			
				|  |  |  |  |                 } else { | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}浓度过高:${it.gasValue} ${it.unit},有醉氧风险" | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}浓度过高:${it.gasValue.forShowStr()} ${it.unit},有醉氧风险" | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |         } else { | 
		
	
	
		
			
				
					|  |  |  | @ -234,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.unit}" | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}气体浓度:${it.gasValue.forShowStr()} ${it.unit}超过高报值${it.thresholdHigh.forShowStr()} ${it.unit}" | 
		
	
		
			
				|  |  |  |  |                 } else { | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}气体浓度:${it.gasValue} ${it.unit}超过低报值${it.thresholdLow} ${it.unit}" | 
		
	
		
			
				|  |  |  |  |                     "请注意,${it.gasName}气体浓度:${it.gasValue.forShowStr()} ${it.unit}超过低报值${it.thresholdLow.forShowStr()} ${it.unit}" | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
	
		
			
				
					|  |  |  | 
 |