From 7a0b60db08ebc49686ee552048c37e814cc4bacc Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 14 Sep 2016 14:46:44 -0500 Subject: [PATCH] Solution to #187 Tested on Arduino IDE 1.6.11. --- optiboot/examples/test_reset/test_reset.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/optiboot/examples/test_reset/test_reset.ino b/optiboot/examples/test_reset/test_reset.ino index f0db737..69f002b 100644 --- a/optiboot/examples/test_reset/test_reset.ino +++ b/optiboot/examples/test_reset/test_reset.ino @@ -23,6 +23,7 @@ uint8_t resetFlags __attribute__ ((section(".noinit"))); * to the variable. Again, avr-gcc provides special code sections for this. */ void resetFlagsInit(void) __attribute__ ((naked)) + __attribute__ ((used)) __attribute__ ((section (".init0"))); void resetFlagsInit(void) {