Add {GET,SET}_USB_BUFFER_UINT* and use them wherever possible. Get rid of SetUsb*() functions.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
void UsbCommand_Reenumerate(void)
|
||||
{
|
||||
Wormhole.magicNumber = WORMHOLE_MAGIC_NUMBER;
|
||||
Wormhole.enumerationMode = GenericHidInBuffer[1];
|
||||
Wormhole.timeoutMs = *((uint32_t*)(GenericHidInBuffer+2));
|
||||
Wormhole.enumerationMode = GET_USB_BUFFER_UINT8(1);
|
||||
Wormhole.timeoutMs = GET_USB_BUFFER_UINT32(2);
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user