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 | |
parent | 6bb1d58a11fae860dfa299e906b160dfa51a4ff2 (diff) |
Fix build
Diffstat (limited to 'berry_fix')
-rw-r--r-- | berry_fix/payload/Makefile | 2 | ||||
-rw-r--r-- | berry_fix/payload/src/flash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/berry_fix/payload/Makefile b/berry_fix/payload/Makefile index ca8b952dd..e7315242f 100644 --- a/berry_fix/payload/Makefile +++ b/berry_fix/payload/Makefile @@ -38,7 +38,7 @@ CPPFLAGS := -I ../../tools/agbcc/include -I ../../tools/agbcc -iquote include -n ROM := payload.gba OBJ_DIR := build CC1 := ../../tools/agbcc/bin/agbcc$(EXE) -override CC1FLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O2 -fhex-asm -nostdlib +override CC1FLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O2 -fhex-asm ELF = $(ROM:.gba=.elf) 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; |