LPC55S69: Cast to cope with const mismatch

pull/10376/head
Kevin Bracey 2019-04-11 14:57:20 +03:00
parent c89c2809ea
commit b1ba4fe7ec
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}