projects
/
pub
/
USBaspLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to new vusb version
[pub/USBaspLoader.git]
/
firmware
/
usbdrv
/
usbdrv.c
diff --git
a/firmware/usbdrv/usbdrv.c
b/firmware/usbdrv/usbdrv.c
index
21ed554
..
7a125f2
100644
(file)
--- a/
firmware/usbdrv/usbdrv.c
+++ b/
firmware/usbdrv/usbdrv.c
@@
-5,7
+5,7
@@
* Tabsize: 4
* Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
* Tabsize: 4
* Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
- * This Revision: $Id
: usbdrv.c 791 2010-07-15 15:56:13Z cs
$
+ * This Revision: $Id$
*/
#include "usbportability.h"
*/
#include "usbportability.h"
@@
-361,7
+361,8
@@
uchar flags = USB_FLG_MSGPTR_IS_ROM;
*/
static inline usbMsgLen_t usbDriverSetup(usbRequest_t *rq)
{
*/
static inline usbMsgLen_t usbDriverSetup(usbRequest_t *rq)
{
-uchar len = 0, *dataPtr = usbTxBuf + 9; /* there are 2 bytes free space at the end of the buffer */
+usbMsgLen_t len = 0;
+uchar *dataPtr = usbTxBuf + 9; /* there are 2 bytes free space at the end of the buffer */
uchar value = rq->wValue.bytes[0];
#if USB_CFG_IMPLEMENT_HALT
uchar index = rq->wIndex.bytes[0];
uchar value = rq->wValue.bytes[0];
#if USB_CFG_IMPLEMENT_HALT
uchar index = rq->wIndex.bytes[0];
@@
-557,6
+558,8
@@
uchar isReset = !notResetState;
USB_RESET_HOOK(isReset);
wasReset = isReset;
}
USB_RESET_HOOK(isReset);
wasReset = isReset;
}
+#else
+ notResetState = notResetState; // avoid compiler warning
#endif
}
#endif
}