Fix incorrect minor version response of kc_get_firmware_version

This commit is contained in:
lokher 2024-04-02 12:33:49 +08:00
parent eba583cfa7
commit 57c5939d45

View File

@ -160,7 +160,7 @@ bool via_command_kb(uint8_t *data, uint8_t length) {
data[i++] = '.'; data[i++] = '.';
itoa((DEVICE_VER >> 4) & 0xF, (char *)&data[i++], 16); itoa((DEVICE_VER >> 4) & 0xF, (char *)&data[i++], 16);
data[i++] = '.'; data[i++] = '.';
itoa((DEVICE_VER >> 4) & 0xF, (char *)&data[i++], 16); itoa(DEVICE_VER & 0xF, (char *)&data[i++], 16);
data[i++] = ' '; data[i++] = ' ';
memcpy(&data[i], QMK_BUILDDATE, sizeof(QMK_BUILDDATE)); memcpy(&data[i], QMK_BUILDDATE, sizeof(QMK_BUILDDATE));
i += sizeof(QMK_BUILDDATE); i += sizeof(QMK_BUILDDATE);