diff options
author | PokeCodec <67983839+PokeCodec@users.noreply.github.com> | 2020-09-08 19:44:33 -0400 |
---|---|---|
committer | PokeCodec <67983839+PokeCodec@users.noreply.github.com> | 2020-09-08 19:44:33 -0400 |
commit | bb5da949f22f0825fa2e75f63dc45a13572686ef (patch) | |
tree | 19087d86ab37fa95aca0b2bb5e32587cb2a83c1a /berry_fix/payload/src | |
parent | 6bb1d58a11fae860dfa299e906b160dfa51a4ff2 (diff) |
Fix build
Diffstat (limited to 'berry_fix/payload/src')
-rw-r--r-- | berry_fix/payload/src/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/berry_fix/payload/src/flash.c b/berry_fix/payload/src/flash.c index 1f09d0b8f..499a1f971 100644 --- a/berry_fix/payload/src/flash.c +++ b/berry_fix/payload/src/flash.c @@ -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; |