Skip to content

Commit 4ab4e31

Browse files
Fix board detect
1 parent c8ffb9d commit 4ab4e31

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • internal_filesystem/lib/mpos

internal_filesystem/lib/mpos/main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,14 @@ def detect_board():
110110
if single_address_i2c_scan(i2c0, 0x6B): # IMU (plus possibly the Communicator's LANA TNY at 0x38)
111111
return "fri3d_2024"
112112

113-
print("odroid_go ?")
114-
if check_pins(0, 13, 27, 39): # this matches too much (also fri3d_2024) so move towards the end
115-
return "odroid_go"
113+
import machine
114+
if machine.unique_id()[0] == 0xdc: # prototype board had: dc:b4:d9:0b:7d:80
115+
# or: if single_address_i2c_scan(i2c0, 0x6A): # IMU currently not installed on prototype board
116+
return "fri3d_2026"
116117

117-
print("Fallback to fri3d_2026")
118-
# default: if single_address_i2c_scan(i2c0, 0x6A): # IMU but currently not installed
119-
return "fri3d_2026"
118+
print("odroid_go ?")
119+
#if check_pins(0, 13, 27, 39): # not good because it matches other boards (like fri3d_2024 and fri3d_2026)
120+
return "odroid_go"
120121

121122
# EXECUTION STARTS HERE
122123

0 commit comments

Comments
 (0)