projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added HID class bootloader, compatible with a modified version of the command line...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
DeviceStandardReq.c
diff --git
a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
index
7d7e48d
..
ffd949e
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
+++ b/
LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
0
.
+ Copyright (C) Dean Camera, 201
1
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
0
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-198,12
+198,6
@@
static void USB_Device_GetConfiguration(void)
}
#if !defined(NO_INTERNAL_SERIAL) && (USE_INTERNAL_SERIAL != NO_DESCRIPTOR)
}
#if !defined(NO_INTERNAL_SERIAL) && (USE_INTERNAL_SERIAL != NO_DESCRIPTOR)
-static char USB_Device_NibbleToASCII(uint8_t Nibble)
-{
- Nibble &= 0x0F;
- return (Nibble >= 10) ? (('A' - 10) + Nibble) : ('0' + Nibble);
-}
-
static void USB_Device_GetInternalSerialDescriptor(void)
{
struct
static void USB_Device_GetInternalSerialDescriptor(void)
{
struct
@@
-229,7
+223,10
@@
static void USB_Device_GetInternalSerialDescriptor(void)
SigReadAddress++;
}
SigReadAddress++;
}
- SignatureDescriptor.UnicodeString[SerialCharNum] = USB_Device_NibbleToASCII(SerialByte);
+ SerialByte &= 0x0F;
+
+ SignatureDescriptor.UnicodeString[SerialCharNum] = (SerialByte >= 10) ?
+ (('A' - 10) + SerialByte) : ('0' + SerialByte);
}
}
}
}