Skip to content

Commit 4d30f8e

Browse files
committed
cleanup of unused code
1 parent 1a5b735 commit 4d30f8e

File tree

6 files changed

+5
-303
lines changed

6 files changed

+5
-303
lines changed

Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ CC= sdcc
22
ASM = sdas8051
33
OBJCOPY = objcopy
44
PACKIHX = packihx
5-
# FLASHER = sinowealth-kb-tool write -p noodle
65
FLASHER = sinowealth-kb-tool write -p nuphy-air60
7-
# FLASHER = sinowealth-kb-tool write -p custom \
8-
# --flash_size 61440 \
9-
# --bootloader_size 4096 \
10-
# --page_size 2048 \
11-
# --vendor_id 0xdead \
12-
# --product_id 0xbeef
136

147
SRCDIR = src
158
OBJDIR = obj
@@ -25,8 +18,6 @@ CODE_SIZE ?= 0xf000 # 61440 bytes (leaving the remaining 4096 for bootloader)
2518

2619
SMK_VERSION ?= alpha
2720

28-
# USB_VID ?= 0xdead
29-
# USB_PID ?= 0xbeef
3021
# Ease backup & restore process by keeping same vid & pid as nuphy-air60
3122
USB_VID ?= 0x05ac
3223
USB_PID ?= 0x024f

src/host.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,5 @@
55
/* send report */
66
void host_keyboard_send(report_keyboard_t *report)
77
{
8-
#if defined(NKRO_ENABLE) && defined(NKRO_SHARED_EP)
9-
10-
if (keyboard_protocol && keymap_config.nkro) {
11-
/* The callers of this function assume that report->mods is where mods go in.
12-
* But report->nkro.mods can be at a different offset if core keyboard does not have a report ID.
13-
*/
14-
report->nkro.mods = report->mods;
15-
report->nkro.report_id = REPORT_ID_NKRO;
16-
} else
17-
#endif
18-
{
19-
#ifdef KEYBOARD_SHARED_EP
20-
report->report_id = REPORT_ID_KEYBOARD;
21-
#endif
22-
}
23-
248
usb_send_report(report);
259
}

0 commit comments

Comments
 (0)