We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PARTITION_NAME_MAX
1 parent cda403e commit a0e81bdCopy full SHA for a0e81bd
flash/partition_info/partition_info.c
@@ -16,7 +16,7 @@
16
17
#define PARTITION_LOCATION_AND_FLAGS_SIZE 2
18
#define PARTITION_ID_SIZE 2
19
-#define PARTITION_NAME_MAX 127
+#define PARTITION_NAME_MAX 127 // name length is indicated by 7 bits
20
#define PARTITION_TABLE_FIXED_INFO_SIZE (4 + PARTITION_TABLE_MAX_PARTITIONS * (PARTITION_LOCATION_AND_FLAGS_SIZE + PARTITION_ID_SIZE))
21
22
/*
@@ -44,7 +44,7 @@ typedef struct {
44
uint32_t flags_and_permissions;
45
uint64_t partition_id;
46
bool has_name;
47
- char name[PARTITION_NAME_MAX + 1]; // name length is indicated by 7 bits
+ char name[PARTITION_NAME_MAX + 1];
48
uint32_t extra_family_id_count;
49
uint32_t extra_family_ids[PARTITION_EXTRA_FAMILY_ID_MAX];
50
} pico_partition_t;
0 commit comments