Fix stupidity. nrf needs to go in the queue

This commit is contained in:
Stefan `Sec` Zehl 2011-08-04 19:00:02 +02:00
parent 5bcb504a1d
commit 009897df88
1 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include "filesystem/ff.h" #include "filesystem/ff.h"
#include "usb/usbmsc.h" #include "usb/usbmsc.h"
#include "basic/random.h" #include "basic/random.h"
#include "funk/nrf24l01p.h"
/**************************************************************************/ /**************************************************************************/
@ -18,6 +19,9 @@ void main_default(void) {
case BTN_ENTER: case BTN_ENTER:
ISPandReset(); ISPandReset();
break; break;
case BTN_UP: // Reset config
f_unlink("r0ket.cfg");
break;
case BTN_DOWN: case BTN_DOWN:
usbMSCInit(); usbMSCInit();
while(1) while(1)
@ -84,7 +88,7 @@ void tick_default(void) {
}; };
EVERY(4096,17){ EVERY(4096,17){
nrf_check_reset(); push_queue(nrf_check_reset);
}; };
return; return;
}; };