Skip to content

Commit a0e81bd

Browse files
committed
Move comment for PARTITION_NAME_MAX
1 parent cda403e commit a0e81bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flash/partition_info/partition_info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#define PARTITION_LOCATION_AND_FLAGS_SIZE 2
1818
#define PARTITION_ID_SIZE 2
19-
#define PARTITION_NAME_MAX 127
19+
#define PARTITION_NAME_MAX 127 // name length is indicated by 7 bits
2020
#define PARTITION_TABLE_FIXED_INFO_SIZE (4 + PARTITION_TABLE_MAX_PARTITIONS * (PARTITION_LOCATION_AND_FLAGS_SIZE + PARTITION_ID_SIZE))
2121

2222
/*
@@ -44,7 +44,7 @@ typedef struct {
4444
uint32_t flags_and_permissions;
4545
uint64_t partition_id;
4646
bool has_name;
47-
char name[PARTITION_NAME_MAX + 1]; // name length is indicated by 7 bits
47+
char name[PARTITION_NAME_MAX + 1];
4848
uint32_t extra_family_id_count;
4949
uint32_t extra_family_ids[PARTITION_EXTRA_FAMILY_ID_MAX];
5050
} pico_partition_t;

0 commit comments

Comments
 (0)