mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-07 08:52:46 +00:00
Minor cleanup of the CDC bootloader.
This commit is contained in:
parent
72fc4a204d
commit
1f33bc2fd3
@ -442,7 +442,7 @@ static void CDC_Task(void)
|
|||||||
}
|
}
|
||||||
else if (Command == AVR109_COMMAND_SetCurrentAddress)
|
else if (Command == AVR109_COMMAND_SetCurrentAddress)
|
||||||
{
|
{
|
||||||
/* Set the current address to that given by the host */
|
/* Set the current address to that given by the host (translate 16-bit word address to byte address) */
|
||||||
CurrAddress = (FetchNextCommandByte() << 9);
|
CurrAddress = (FetchNextCommandByte() << 9);
|
||||||
CurrAddress |= (FetchNextCommandByte() << 1);
|
CurrAddress |= (FetchNextCommandByte() << 1);
|
||||||
|
|
||||||
@ -460,7 +460,7 @@ static void CDC_Task(void)
|
|||||||
for (uint8_t CurrByte = 0; CurrByte < 7; CurrByte++)
|
for (uint8_t CurrByte = 0; CurrByte < 7; CurrByte++)
|
||||||
WriteNextResponseByte(SOFTWARE_IDENTIFIER[CurrByte]);
|
WriteNextResponseByte(SOFTWARE_IDENTIFIER[CurrByte]);
|
||||||
}
|
}
|
||||||
else if (Command == AVR109_COMMAND_ReadBootloaderVersion)
|
else if (Command == AVR109_COMMAND_ReadBootloaderSWVersion)
|
||||||
{
|
{
|
||||||
WriteNextResponseByte('0' + BOOTLOADER_VERSION_MAJOR);
|
WriteNextResponseByte('0' + BOOTLOADER_VERSION_MAJOR);
|
||||||
WriteNextResponseByte('0' + BOOTLOADER_VERSION_MINOR);
|
WriteNextResponseByte('0' + BOOTLOADER_VERSION_MINOR);
|
||||||
|
@ -99,7 +99,8 @@
|
|||||||
AVR109_COMMAND_WriteLockbits = 'l',
|
AVR109_COMMAND_WriteLockbits = 'l',
|
||||||
AVR109_COMMAND_EraseFLASH = 'e',
|
AVR109_COMMAND_EraseFLASH = 'e',
|
||||||
AVR109_COMMAND_ReadSignature = 's',
|
AVR109_COMMAND_ReadSignature = 's',
|
||||||
AVR109_COMMAND_ReadBootloaderVersion = 'V',
|
AVR109_COMMAND_ReadBootloaderSWVersion = 'V',
|
||||||
|
AVR109_COMMAND_ReadBootloaderHWVersion = 'v',
|
||||||
AVR109_COMMAND_ReadBootloaderIdentifier = 'S',
|
AVR109_COMMAND_ReadBootloaderIdentifier = 'S',
|
||||||
AVR109_COMMAND_ReadBootloaderInterface = 'p',
|
AVR109_COMMAND_ReadBootloaderInterface = 'p',
|
||||||
AVR109_COMMAND_SetCurrentAddress = 'A',
|
AVR109_COMMAND_SetCurrentAddress = 'A',
|
||||||
|
Loading…
Reference in New Issue
Block a user