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.
1 parent 3a80cc5 commit 08910ebCopy full SHA for 08910eb
src/Partitioning.cpp
@@ -162,8 +162,9 @@ std::vector<Partition> Partitioning::readPartitions(BlockDeviceType * blockDevic
162
*/
163
partition.size = (entry.lbaSize * 4096) >> 10;
164
165
- if (entry.type == emptyPartitionType && partition.size != 0) {
+ if (entry.type == emptyPartitionType || partition.size == 0) {
166
// Skip empty partitions
167
+ Arduino_UnifiedStorage::debugPrint("[Partitioning][readPartitions][INFO] Partition " + String(partitionIndex) + " is empty, skipping");
168
continue;
169
}
170
0 commit comments