diff --git a/firmware/usb.c b/firmware/usb.c index 36869a2..749b894 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -25,7 +25,7 @@ usbMsgLen_t usbFunctionSetup(uchar data[8]) // because of the code size we have to transfer one frame in // two steps (control messages) - if ( rq->wIndex.bytes[0] == 0 ) + if ( ! rq->wIndex.bytes[0] ) { // the lower word frame = (frame & (uint32_t)0xffff0000) | diff --git a/firmware/usb.h b/firmware/usb.h index 278a2bb..59285e7 100644 --- a/firmware/usb.h +++ b/firmware/usb.h @@ -15,10 +15,6 @@ #include -#ifndef EEMEM -#define EEMEM __attribute__ ((section (".eeprom"))) -#endif - #include "globals.h" #include "usbconfig.h"