Skip to content

Commit

Permalink
Silently replace the A201 prefix with A200; this lets us support the …
Browse files Browse the repository at this point in the history
…Observer with minimal changes elsewhere (and the number of A201 bases is very small)
  • Loading branch information
civerachb-cpr committed Nov 29, 2024
1 parent afa5710 commit f1f5f51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clearpath_config/common/types/serial_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def parse(sn: str) -> tuple:
'cpr-j100-0001',
)
sn = sn[1:]
# Silently replace A201 prefix with A200
# Mechanically both are effectively identical, and re-use the same options & payloads
if sn[0] == 'a201':
sn[0] = 'a200'
# Match to Robot
assert sn[0] in Platform.ALL, (
'Serial Number model entry must match one of %s' % Platform.ALL
Expand Down

0 comments on commit f1f5f51

Please sign in to comment.