From 45d3b102956c74f837eb0297af45939ca46b09a0 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 24 Jan 2012 18:04:10 -0500 Subject: Caterina now cleanly hands off operation to the sketch had to remove TIMER1 operation from bootloader - was interfering with normal sketch operation --- cores/arduino/CDC.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cores/arduino') diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp index 8605ce3..eb1b2c5 100644 --- a/cores/arduino/CDC.cpp +++ b/cores/arduino/CDC.cpp @@ -27,7 +27,10 @@ void Reboot() { USB.detach(); cli(); - asm volatile("jmp 0x7800"); // jump to bootloader - DiskLoader takes up last 2 kB + + // Reset the microcontroller to run the bootloader + wdt_enable(WDTO_250MS); + for (;;); } // Define constants and variables for buffering incoming serial data. We're -- cgit v1.2.3-18-g5258