Remove potentially unaligned uint32_t access in HIDParser.c, replace with standard C bit shifts.
This commit is contained in:
parent
6c738343ae
commit
4068efbd18
9 changed files with 56 additions and 38 deletions
|
@ -233,7 +233,7 @@ static uint8_t AOA_Host_GetAccessoryProtocol(uint16_t* const Protocol)
|
|||
static uint8_t AOA_Host_SendPropertyString(USB_ClassInfo_AOA_Host_t* const AOAInterfaceInfo,
|
||||
const uint8_t StringIndex)
|
||||
{
|
||||
const char* String = ((char**)&AOAInterfaceInfo->Config.PropertyStrings)[StringIndex];
|
||||
const char* String = AOAInterfaceInfo->Config.PropertyStrings[StringIndex];
|
||||
|
||||
if (String == NULL)
|
||||
String = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue