Read temperatures every 10ms
This commit is contained in:
parent
66aa66f844
commit
2baf53a80c
@ -22,7 +22,7 @@ class Temperatures(QObject):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
time.sleep(0.1)
|
time.sleep(0.01)
|
||||||
self.dev.read_until(START_OF_TEMPS)
|
self.dev.read_until(START_OF_TEMPS)
|
||||||
data = self.dev.read(N_SENSORS * 2)
|
data = self.dev.read(N_SENSORS * 2)
|
||||||
temps = struct.unpack(f">{N_SENSORS}h", data)
|
temps = struct.unpack(f">{N_SENSORS}h", data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user