AP_IOMCU: fixed build error on F7

This commit is contained in:
Andrew Tridgell 2018-05-29 21:43:52 +10:00
parent 721f3cd5d1
commit 0047807fbf

View File

@ -330,7 +330,6 @@ bool AP_IOMCU::program(uint32_t fw_size)
*/
bool AP_IOMCU::verify_rev2(uint32_t fw_size)
{
ssize_t count;
bool ret;
size_t sent = 0;
@ -368,7 +367,7 @@ bool AP_IOMCU::verify_rev2(uint32_t fw_size)
}
}
sent += count;
sent += n;
ret = get_sync();
if (!ret) {