Error return passed back up for writing page data

This commit is contained in:
Ross Owen
2017-08-14 12:00:52 +01:00
parent 0e75a1e037
commit ce5ae60f3b
2 changed files with 11 additions and 2 deletions

View File

@@ -196,7 +196,10 @@ int flash_cmd_write_page_data(unsigned char *data)
if (current_flash_subpage_index == 4)
{
if (fl_writeImagePage(current_flash_page_data) != 0)
{
FLASH_ERROR();
return 1;
}
pages_written++;
}