Skip to content

Commit

Permalink
Fix bootloader running after brown out.
Browse files Browse the repository at this point in the history
Resolves NicoHood#134
  • Loading branch information
hraftery committed Dec 15, 2023
1 parent 0c1c4bb commit e006140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avr/bootloaders/HoodLoader2/HoodLoader2.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void Application_Jump_Check(void)
}

// On a power-on reset, we ALWAYS want to go to the sketch. If there is one.
else if ((mcusr_state & (1 << PORF))){
else if ((mcusr_state & (1 << PORF)) || (mcusr_state & (1 << BORF))){
if(!POWER_ON_TO_BOOTLOADER){
StartSketch();
}
Expand Down

0 comments on commit e006140

Please sign in to comment.