def process(self):
items = []
count = 0
- limit = 100
+ limit = 1000
if not self.running():
return items
while self.serial.readable():
state.acc[1] = float(acc_m.group(2))
state.acc[2] = float(acc_m.group(3))
if mag_m:
- state.acc[0] = float(mag_m.group(1))
- state.acc[1] = float(mag_m.group(2))
- state.acc[2] = float(mag_m.group(3))
+ state.mag[0] = float(mag_m.group(1))
+ state.mag[1] = float(mag_m.group(2))
+ state.mag[2] = float(mag_m.group(3))
if lgt_m:
state.light[0] = float(lgt_m.group(1))
if tch_m: