mirror of https://github.com/ARMmbed/mbed-os.git
LPC55S69: Cast to cope with const mismatch
parent
c89c2809ea
commit
b1ba4fe7ec
|
@ -116,7 +116,7 @@ MBED_NONSECURE_ENTRY int32_t flash_program_page(flash_t *obj, uint32_t address,
|
|||
uint32_t status;
|
||||
uint32_t failedAddress, failedData;
|
||||
|
||||
status = FLASH_Program(&flash_config, address, data, size);
|
||||
status = FLASH_Program(&flash_config, address, (uint8_t *)data, size);
|
||||
if (status == kStatus_Success) {
|
||||
status = FLASH_VerifyProgram(&flash_config, address, size, data, &failedAddress, &failedData);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue