Skip to content

Commit

Permalink
Patch compiling issue in isp_flasher
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomona committed Mar 12, 2022
1 parent 4288e1e commit 66c9ef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions picotiny/fw/fw-brom/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROJ_NAME=fw-brom
DEBUG=no
BENCH=no
COMPACT=no
COMPACT=yes
MULDIV=no
COMPRESSED=no

Expand Down Expand Up @@ -34,7 +34,7 @@ ifeq ($(DEBUG),yes)
endif

ifeq ($(DEBUG),no)
ifeq ($(COMPACT),yew)
ifeq ($(COMPACT),yes)
CFLAGS += -g -O2
else
CFLAGS += -g -O3
Expand Down
4 changes: 2 additions & 2 deletions picotiny/fw/fw-brom/isp_flasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int main()

if (waitcnt == FW_WAIT_MAXCNT) {
void (*flash_vec)(void) = (void (*)(void))(0x00000000);
goto *flash_vec;
flash_vec();
}

while (1) {
Expand Down Expand Up @@ -215,7 +215,7 @@ int main()

// Jump to reset vector
void (*rst_vec)(void) = (void (*)(void))(0x80000000);
goto *rst_vec;
rst_vec();
break;
default:
break;
Expand Down

0 comments on commit 66c9ef6

Please sign in to comment.