From 009897df88fd0cc17ae691cd401cb5ebab175253 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Thu, 4 Aug 2011 19:00:02 +0200 Subject: [PATCH] Fix stupidity. nrf needs to go in the queue --- firmware/applications/default.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/applications/default.c b/firmware/applications/default.c index 6b0c843..db93123 100644 --- a/firmware/applications/default.c +++ b/firmware/applications/default.c @@ -8,6 +8,7 @@ #include "filesystem/ff.h" #include "usb/usbmsc.h" #include "basic/random.h" +#include "funk/nrf24l01p.h" /**************************************************************************/ @@ -18,6 +19,9 @@ void main_default(void) { case BTN_ENTER: ISPandReset(); break; + case BTN_UP: // Reset config + f_unlink("r0ket.cfg"); + break; case BTN_DOWN: usbMSCInit(); while(1) @@ -84,7 +88,7 @@ void tick_default(void) { }; EVERY(4096,17){ - nrf_check_reset(); + push_queue(nrf_check_reset); }; return; };