Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion xboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,15 @@ int main(void)
// whether or not USE_ENTER_DELAY is selected
// --------------------------------------------------


#ifdef USE_ENTER_SWRST
// Check for soft reset
#ifdef __AVR_XMEGA__
if (RST.STATUS == RST_SRF_bm)
in_bootloader = 1;
#else // __AVR_XMEGA__
#error USE_ENTER_SWRST supported on XMEGA only!
#endif // __AVR_XMEGA__
#endif // USE_ENTER_SWRST

// --------------------------------------------------
// End one time trigger section
Expand Down