mirror of
https://github.com/andreili/katapult.git
synced 2025-08-24 03:44:06 +02:00
flash_can: fix error in uuid reporting
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
f0d7bb7f9c
commit
b5303fa5f7
@ -334,8 +334,9 @@ class CanSocket:
|
|||||||
app = "CanBoot"
|
app = "CanBoot"
|
||||||
elif resp[-1] == 0:
|
elif resp[-1] == 0:
|
||||||
app = "Klipper"
|
app = "Klipper"
|
||||||
output_line(f"Detected UUID: {resp[1:].hex()}, Application: {app}")
|
data = resp[1:7]
|
||||||
uuid = sum([v << ((5 - i) * 8) for i, v in enumerate(resp[1:7])])
|
output_line(f"Detected UUID: {data.hex()}, Application: {app}")
|
||||||
|
uuid = sum([v << ((5 - i) * 8) for i, v in enumerate(data)])
|
||||||
if uuid not in self.uuids and app == "CanBoot":
|
if uuid not in self.uuids and app == "CanBoot":
|
||||||
self.uuids.append(uuid)
|
self.uuids.append(uuid)
|
||||||
return self.uuids
|
return self.uuids
|
||||||
|
Loading…
x
Reference in New Issue
Block a user