Closed benma closed 2 years ago
In C, the size of an enum is undefined. In my manual checks, sizeof(BackupMode) is 4 bytes on my host machine and 1 byte on the BitBox02.
sizeof(BackupMode)
We explicitly set the size of the field for clarity to 1 byte (compatible with all backups created on the BitBox02s).
In C, the size of an enum is undefined. In my manual checks,
sizeof(BackupMode)
is 4 bytes on my host machine and 1 byte on the BitBox02.We explicitly set the size of the field for clarity to 1 byte (compatible with all backups created on the BitBox02s).