This commit is contained in:
quackerd 2022-01-22 05:52:20 +08:00
parent acc9c0ab9d
commit ad09de77a0

View File

@ -26,7 +26,7 @@ class PTQS1005AC:
self.tvoc = 0
self.tvoc_quan = 0
self.hcho = 0
self.tvoc_quan = 0
self.hcho_quan = 0
self.co2 = 0
self.temp = 0
self.hum = 0
@ -66,7 +66,7 @@ class PTQS1005AC:
self.tvoc = self.__make_16bit_int(raw_resp[28], raw_resp[29]) / 100.0
self.tvoc_quan = int(raw_resp[30])
self.hcho = self.__make_16bit_int(raw_resp[31], raw_resp[32]) / 100.0
self.tvoc_quan = int(raw_resp[33])
self.hcho_quan = int(raw_resp[33])
self.co2 = self.__make_16bit_int(raw_resp[34], raw_resp[35])
self.temp = self.__make_16bit_int(raw_resp[36], raw_resp[37]) / 10.0
self.hum = self.__make_16bit_int(raw_resp[38], raw_resp[39]) / 10.0