mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +00:00
hal_flash_bank_memory: remove exit() from write-twice error reporting
This commit is contained in:
parent
c006cd1902
commit
432f6cc7ec
@ -92,11 +92,10 @@ static void hal_flash_bank_memory_write(void * context, int bank, uint32_t offse
|
||||
if (data[i] == 0xff) continue;
|
||||
// writing something other than 0x00 is only allowed once
|
||||
if (self->banks[bank][offset] != 0xff && data[i] != 0x00){
|
||||
printf("Error: offset %u written twice. Data: 0x%02x!\n", offset+i, data[i]);
|
||||
exit(10);
|
||||
return;
|
||||
log_error("Error: offset %u written twice. Data: 0x%02x!", offset+i, data[i]);
|
||||
} else {
|
||||
self->banks[bank][offset++] = data[i];
|
||||
}
|
||||
self->banks[bank][offset++] = data[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user