VIA v13 (#26001)
This commit is contained in:
parent
70694abdfe
commit
cc291cff7f
2 changed files with 10 additions and 1 deletions
|
|
@ -357,6 +357,14 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
|
||||||
command_data[4] = value & 0xFF;
|
command_data[4] = value & 0xFF;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case id_keycodes_version: {
|
||||||
|
uint32_t value = QMK_KEYCODES_VERSION_BCD;
|
||||||
|
command_data[1] = (value >> 24) & 0xFF;
|
||||||
|
command_data[2] = (value >> 16) & 0xFF;
|
||||||
|
command_data[3] = (value >> 8) & 0xFF;
|
||||||
|
command_data[4] = value & 0xFF;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
// The value ID is not known
|
// The value ID is not known
|
||||||
// Return the unhandled state
|
// Return the unhandled state
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
// This is changed only when the command IDs change,
|
// This is changed only when the command IDs change,
|
||||||
// so VIA Configurator can detect compatible firmware.
|
// so VIA Configurator can detect compatible firmware.
|
||||||
#define VIA_PROTOCOL_VERSION 0x000C
|
#define VIA_PROTOCOL_VERSION 0x000D
|
||||||
|
|
||||||
// This is a version number for the firmware for the keyboard.
|
// This is a version number for the firmware for the keyboard.
|
||||||
// It can be used to ensure the VIA keyboard definition and the firmware
|
// It can be used to ensure the VIA keyboard definition and the firmware
|
||||||
|
|
@ -82,6 +82,7 @@ enum via_keyboard_value_id {
|
||||||
id_switch_matrix_state = 0x03,
|
id_switch_matrix_state = 0x03,
|
||||||
id_firmware_version = 0x04,
|
id_firmware_version = 0x04,
|
||||||
id_device_indication = 0x05,
|
id_device_indication = 0x05,
|
||||||
|
id_keycodes_version = 0x06,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum via_channel_id {
|
enum via_channel_id {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue