summaryrefslogtreecommitdiff
path: root/prototype/fw/tools
diff options
context:
space:
mode:
Diffstat (limited to 'prototype/fw/tools')
-rw-r--r--prototype/fw/tools/ser_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/prototype/fw/tools/ser_test.py b/prototype/fw/tools/ser_test.py
index 191124b..d9dec62 100644
--- a/prototype/fw/tools/ser_test.py
+++ b/prototype/fw/tools/ser_test.py
@@ -66,8 +66,10 @@ if __name__ == '__main__':
if time.time() - last_tx > 0.01:
+ seq = int((time.time() - start_time) * 10)
data = struct.pack('<I', seq)
- seq += 1
+ #seq += 1
+ #ser.write(bytes(list(range(255, -1, -1))))
ser.write(cobs.encode(data + struct.pack('<I', zlib.crc32(data))) + b'\0')
last_tx = time.time()
#time.sleep(0.01)