pbio/platform/essential_hub: Drop unused symbols.
This sets two unused fields to NULL, and clarifies the name of the id_string.
// Special symbols for firmware compatibility with official apps
typedef struct {
const char *fw_ver;
- const uint32_t *reserved1;
- const uint8_t *reserved2;
- const char *hub_type_id;
+ const uint32_t *checksum;
+ const uint8_t *reserved;
+ const char *id_string;
} boot_t;
const boot_t __attribute__((section(".boot"))) boot = {
- .fw_ver = "pybricks-micropython",
- .reserved1 = NULL,
- .reserved2 = (const uint8_t[16]) {0},
- .hub_type_id = "LEGO Technic Small Hub(0x000D)",
+ // These values are not used.
+ .fw_ver = NULL,
+ .checksum = NULL,
+ .reserved = NULL,
+ // This value is checked when installing the firmware
+ // via the 'firmware' MicroPython module on the hub.
+ .id_string = "LEGO Technic Small Hub(0x000D)",
};
enum {
