File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ static FAT_BootBlock const BootBlock = {
128
128
.SectorsPerFAT = SECTORS_PER_FAT ,
129
129
.SectorsPerTrack = 1 ,
130
130
.Heads = 1 ,
131
- .PhysicalDriveNum = 0x80 , // to match MediaDescriptor of 0xF8
131
+ .PhysicalDriveNum = 0x80 , // to match MediaDescriptor of 0xF8
132
132
.ExtendedBootSig = 0x29 ,
133
133
.VolumeSerialNumber = 0x00420042 ,
134
134
.VolumeLabel = UF2_VOLUME_LABEL ,
@@ -172,6 +172,7 @@ static uint32_t current_flash_size(void)
172
172
result = FLASH_SIZE ;
173
173
}
174
174
}
175
+
175
176
flash_sz = result ; // presumes atomic 32-bit read/write and static result
176
177
}
177
178
@@ -180,13 +181,14 @@ static uint32_t current_flash_size(void)
180
181
181
182
void padded_memcpy (char * dst , char const * src , int len )
182
183
{
183
- for (int i = 0 ; i < len ; ++ i ) {
184
- if (* src )
185
- * dst = * src ++ ;
186
- else
187
- * dst = ' ' ;
188
- dst ++ ;
189
- }
184
+ for ( int i = 0 ; i < len ; ++ i )
185
+ {
186
+ if ( * src )
187
+ * dst = * src ++ ;
188
+ else
189
+ * dst = ' ' ;
190
+ dst ++ ;
191
+ }
190
192
}
191
193
192
194
You can’t perform that action at this time.
0 commit comments