From 0fcba5516fd6a4c025142a5a12f3568089025b45 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Tue, 27 Dec 2011 11:47:26 +0100 Subject: [PATCH] EEMEM definition moved to globals. --- firmware/usb.c | 2 +- firmware/usb.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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"