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 = {
128128 .SectorsPerFAT = SECTORS_PER_FAT ,
129129 .SectorsPerTrack = 1 ,
130130 .Heads = 1 ,
131- .PhysicalDriveNum = 0x80 , // to match MediaDescriptor of 0xF8
131+ .PhysicalDriveNum = 0x80 , // to match MediaDescriptor of 0xF8
132132 .ExtendedBootSig = 0x29 ,
133133 .VolumeSerialNumber = 0x00420042 ,
134134 .VolumeLabel = UF2_VOLUME_LABEL ,
@@ -172,6 +172,7 @@ static uint32_t current_flash_size(void)
172172 result = FLASH_SIZE ;
173173 }
174174 }
175+
175176 flash_sz = result ; // presumes atomic 32-bit read/write and static result
176177 }
177178
@@ -180,13 +181,14 @@ static uint32_t current_flash_size(void)
180181
181182void padded_memcpy (char * dst , char const * src , int len )
182183{
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+ }
190192}
191193
192194
You can’t perform that action at this time.
0 commit comments