Commit 6368c71f authored by John, Fabian's avatar John, Fabian
Browse files

t

parent 60437e23
......@@ -153,7 +153,6 @@ while not ser.is_open:
# Meta: uint16 RmarkerInt, uint16 RmarkerFrac, float strength, float fpStrength, int32_t rxTimestamp
metaLen = 16
binary_rec_len = metaLen + cfg['serial']['cir_len']*4
start_ms = int(round(time.time() * 1000))
while True:
try:
cc = str(ser.readline())
......@@ -171,8 +170,7 @@ while True:
c = c2
b_rec += c
if len(b_rec) >= binary_rec_len:
milliseconds = int(round(time.time() * 1000)) - start_ms
time_b = struct.pack('i', milliseconds)
time_b = struct.pack('f', time.time())
b_rec += time_b
if False:
logging.debug("Received enough")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment