Skip to content

Commit

Permalink
Delete get board signature command
Browse files Browse the repository at this point in the history
Use prodcut name prefix (BMP) instead
  • Loading branch information
sekigon-gonnoc committed Mar 19, 2021
1 parent d701bda commit 490d387
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions tmk_core/protocol/nrf/bmp_via.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@

#pragma once

enum via_bmp_get_id {
id_control_board_type = 0xFF,
};

enum via_bmp_set_id {
id_control_save_flag = 0xFF,
};

#define BLE_MICRO_PRO_VIA_SIGNATURE { 'B', 'L', 'E', 'M' }
15 changes: 0 additions & 15 deletions tmk_core/protocol/nrf/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,6 @@ void raw_hid_receive_bmp(uint8_t *data, uint8_t length) {
const uint8_t *command_id = &data[0];
const uint8_t *command_data = &data[1];
switch (*command_id) {
case id_get_keyboard_value: {
switch (command_data[0]) {
case id_control_board_type:
if (length > 6) {
const char ble_micro_pro_signature[] =
BLE_MICRO_PRO_VIA_SIGNATURE;
data[2] = ble_micro_pro_signature[0];
data[3] = ble_micro_pro_signature[1];
data[4] = ble_micro_pro_signature[2];
data[5] = ble_micro_pro_signature[3];
}
break;
}
} break;

case id_set_keyboard_value: {
switch (command_data[0]) {
case id_control_save_flag:
Expand Down

0 comments on commit 490d387

Please sign in to comment.