dever 4 years ago
parent
commit
29aec7e062
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/modbus/handle.py

+ 1 - 1
service/modbus/handle.py

@@ -167,6 +167,7 @@ class Handle(object):
 		return self.exp(code, info, value)
 
 	def exp(self, code, info, value):
+		print(value)
 		if value and value != '0':
 			if 'exp' in code and code['exp']:
 				value = Demeter.exp(code['exp'], value)
@@ -179,7 +180,6 @@ class Handle(object):
 	def hex2dec(self, string_num): 
 		#start = string_num[0:1]
 		#大于8为负数 后续处理吧
-		print(string_num)
 		return str(int(string_num.upper(), 16))
 
 	def getCode(self, address, code, type = 1):