Fixing EAS and FLEX decoders.

This commit is contained in:
Marat Fayzullin 2024-07-03 13:39:06 -04:00
parent 38f2d4a953
commit a4ed476dff
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ class PageParser(TextParser):
out = { out = {
"mode": "FLEX", "mode": "FLEX",
"baud": int(baud), "baud": int(baud),
"timestamp": round(time.timestamp() * 1000), "timestamp": round(datetime.now().timestamp() * 1000),
"state": state, "state": state,
"frame": frame, "frame": frame,
"address": capcode, "address": capcode,
@ -396,7 +396,7 @@ class EasParser(TextParser):
out += [s, d["msg"], ""] out += [s, d["msg"], ""]
spot = { spot = {
"mode": "EAS", "mode": "EAS",
"timestamp": round(time.timestamp() * 1000), "timestamp": round(datetime.now().timestamp() * 1000),
"message": d["msg"], "message": d["msg"],
"raw": s, "raw": s,
**d **d