fet_core: fix segment erase.
A non-zero length must be supplied to the firmware.
This commit is contained in:
parent
ce2e0a94f4
commit
5ccf2e35d2
|
@ -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,
|
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");
|
printc_err("fet: erase command failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue