fet_core: fix segment erase.

A non-zero length must be supplied to the firmware.
This commit is contained in:
Daniel Beer 2013-03-10 15:28:36 +13:00
parent ce2e0a94f4
commit 5ccf2e35d2
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ int fet_erase(device_t dev_base, device_erase_type_t type, address_t addr)
}
if (fet_proto_xfer(&dev->proto, C_ERASE, NULL, 0,
3, fet_erase_type, addr, 0) < 0) {
3, fet_erase_type, addr, 1) < 0) {
printc_err("fet: erase command failed\n");
return -1;
}