diff --git a/bootloaders/caterina/Caterina.c b/bootloaders/caterina/Caterina.c index 9860b3a3f..55dd912c7 100644 --- a/bootloaders/caterina/Caterina.c +++ b/bootloaders/caterina/Caterina.c @@ -68,7 +68,7 @@ uint16_t Timeout = 0; uint16_t bootKey = 0x7777; volatile uint16_t *const bootKeyPtr = (volatile uint16_t *)0x0800; -void StartSketch(void) +void StartSketch(uint8_t mcusr_state) { cli(); @@ -86,6 +86,8 @@ void StartSketch(void) TX_LED_OFF(); RX_LED_OFF(); + GPIOR0 = mcusr_state; + /* jump to beginning of application space */ __asm__ volatile("jmp 0x0000"); } @@ -126,10 +128,10 @@ int main(void) } else if ((mcusr_state & (1< pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy