Skip to content

Commit

Permalink
WMODE not entirely correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Sympatron authored Dec 20, 2023
1 parent 4c90034 commit 1124479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selfmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void setBootProt(int v) {
exec_cmd(NVMCTRL_CTRLA_CMD_PBC);
#endif
#ifdef SAMD51
NVMCTRL->CTRLA.bit.WMODE = NVMCTRL_CTRLA_WMODE_MAN;
NVMCTRL->CTRLA.bit.WMODE = NVMCTRL_CTRLA_WMODE_MAN_Val;

exec_cmd(NVMCTRL_CTRLB_CMD_EP);
exec_cmd(NVMCTRL_CTRLB_CMD_PBC);
Expand Down

0 comments on commit 1124479

Please sign in to comment.