AP_FlashIface: Fixed could be used unintialized

This commit is contained in:
Jaaaky 2022-03-06 20:04:30 +03:00 committed by Peter Barker
parent 6c74c5d4da
commit 7d95b1ddd3
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ bool AP_FlashIface_JEDEC::start_sector_erase(uint32_t sector, uint32_t &delay_ms
bool AP_FlashIface_JEDEC::start_erase_offset(uint32_t offset, uint32_t size, uint32_t &erasing,
uint32_t &delay_ms, uint32_t &timeout_ms)
{
uint8_t ins;
uint8_t ins = 0;
uint32_t erase_size = 0;
erasing = 0;
// Find the maximum size we can erase