This commit is contained in:
Dimitris Mantzouranis 2026-04-17 01:53:05 +03:00 • committed by GitHub
commit cc291cff7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -357,6 +357,14 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
command_data[4] = value & 0xFF;
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: {
// The value ID is not known
// Return the unhandled state

View file

@ -39,7 +39,7 @@
// This is changed only when the command IDs change,
// 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.
// 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_firmware_version = 0x04,
id_device_indication = 0x05,
id_keycodes_version = 0x06,
};
enum via_channel_id {