clean up
This commit is contained in:
parent
79ae930f15
commit
01ac2b3d46
@ -172,6 +172,7 @@ static uint32_t current_flash_size(void)
|
|||||||
result = FLASH_SIZE;
|
result = FLASH_SIZE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flash_sz = result; // presumes atomic 32-bit read/write and static result
|
flash_sz = result; // presumes atomic 32-bit read/write and static result
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +181,8 @@ static uint32_t current_flash_size(void)
|
|||||||
|
|
||||||
void padded_memcpy (char *dst, char const *src, int len)
|
void padded_memcpy (char *dst, char const *src, int len)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < len; ++i) {
|
for ( int i = 0; i < len; ++i )
|
||||||
|
{
|
||||||
if ( *src )
|
if ( *src )
|
||||||
*dst = *src++;
|
*dst = *src++;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user