Corrected the set_user_id.py script to put the bits in the correct

direction when casting from an integer to a binary string.  This
is the same correction that was made to caravel-gf180mcu some time
ago.  Thanks to Mitch Bailey for finding and reporting the issue.
This commit is contained in:
Tim Edwards 2023-12-05 21:26:48 -05:00
parent 05baf48756
commit d479ca1e69
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ if __name__ == '__main__':
try:
user_id_int = int('0x' + user_id_value, 0)
user_id_bits = '{0:032b}'.format(user_id_int)
user_id_bits = '{0:032b}'.format(user_id_int)[::-1]
except:
print('Error: Cannot parse user ID "' + user_id_value + '" as an 8-digit hex number.')
sys.exit(1)