Skip to content

Commit

Permalink
Correct Base32 representation of serial number
Browse files Browse the repository at this point in the history
Bump version to 1.1
Fix #18
  • Loading branch information
mossmann committed May 29, 2024
1 parent f01dd82 commit 0f053ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BOARD_REVISION_MAJOR ?= 1
BOARD_REVISION_MINOR ?= 4

VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_MINOR = 1

CROSS=arm-none-eabi-

Expand Down
2 changes: 1 addition & 1 deletion usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ char *get_serial_number_string(void)
}
bitsLeft -= 5;
int index = (buffer >> bitsLeft) & 0x1f;
buf[count] = index + (index < 26 ? 'A' : '2'); // Base32
buf[count] = index + (index < 26 ? 'A' : '2' - 26); // Base32
}

return buf;
Expand Down

0 comments on commit 0f053ab

Please sign in to comment.