From 902892795867a1070ede9ce0453dabc54e72cfd1 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Mon, 18 Nov 2013 14:14:07 +0100 Subject: minor --- firmware/main.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'firmware/main.c') diff --git a/firmware/main.c b/firmware/main.c index bd936e0..b3ecf0d 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -427,6 +427,8 @@ int main(void) { PORTB &=~_BV(NANITE_CTRLPIN); #endif initForUsbConnectivity(); + + do { usbPoll(); @@ -443,14 +445,14 @@ int main(void) { if (((unsigned char*)&idlePolls)[1]&0xd) DDRB &=~_BV(NANITE_CTRLPIN); #endif -# if BOOTLOADER_CAN_EXIT - if (isEvent(EVENT_EXECUTE)) { // when host requests device run uploaded program - break; - } -# endif +# if BOOTLOADER_CAN_EXIT + if (isEvent(EVENT_EXECUTE)) { // when host requests device run uploaded program + break; + } +# endif clearEvents(); - + } while(bootLoaderCondition()); /* main event loop runs so long as bootLoaderCondition remains truthy */ } -- cgit v1.2.3