Skip to content

Commit 81d4f8f

Browse files
p3pthinkyhead
authored andcommitted
🩹 Fix SD partitionTable packing (#25648)
1 parent b0c3db6 commit 81d4f8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Marlin/src/sd/SdFatStructs.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ struct partitionTable {
6666
* Sector part of Cylinder-head-sector address of the first block in
6767
* the partition. Legal values are 1-63. Only used in old PC BIOS.
6868
*/
69-
unsigned beginSector : 6;
69+
uint8_t beginSector : 6;
7070
/** High bits cylinder for first block in partition. */
71-
unsigned beginCylinderHigh : 2;
71+
uint8_t beginCylinderHigh : 2;
7272
/**
7373
* Combine beginCylinderLow with beginCylinderHigh. Legal values
7474
* are 0-1023. Only used in old PC BIOS.
@@ -88,9 +88,9 @@ struct partitionTable {
8888
* Sector part of cylinder-head-sector address of the last sector in
8989
* the partition. Legal values are 1-63. Only used in old PC BIOS.
9090
*/
91-
unsigned endSector : 6;
91+
uint8_t endSector : 6;
9292
/** High bits of end cylinder */
93-
unsigned endCylinderHigh : 2;
93+
uint8_t endCylinderHigh : 2;
9494
/**
9595
* Combine endCylinderLow with endCylinderHigh. Legal values
9696
* are 0-1023. Only used in old PC BIOS.

0 commit comments

Comments
 (0)