Fix build

This commit is contained in:
PokeCodec
2020-09-08 19:44:33 -04:00
parent 6bb1d58a11
commit bb5da949f2
3 changed files with 8 additions and 17 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ u8 HandleWriteSectorNBytes(u8 sectorNum, u8 *data, u16 size)
u8 TryWriteSector(u8 sectorNum, u8 *data)
{
if (ProgramFlashSectorAndVerify(sectorNum, data) != 0) // is damaged?
if (ProgramFlashSectorAndVerify(sectorNum, data)) // is damaged?
{
SetSectorDamagedStatus(SECTOR_DAMAGED, sectorNum); // set damaged sector bits.
return SAVE_STATUS_ERROR;