Skip to content

Why are file names in Bangle.js limited to 28 chars? #7826

Closed Answered by gfwilliams
RKBoss6 asked this question in Bangle.js
Discussion options

You must be logged in to vote

We want to try and keep things aligned on at least 8 byte boundaries (some STM32s have a restriction iirc), and so it made sense to make the file header 32 bytes. We pack the file size and other flags into 4 bytes, and that leaves 28 for the name :)

Originally it was 12 characters I think and a 16 byte header, but I expanded it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RKBoss6
Comment options

Answer selected by RKBoss6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants