Skip to content

Commit

Permalink
cleanup of unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Nov 27, 2023
1 parent 1a5b735 commit 4d30f8e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 303 deletions.
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ CC= sdcc
ASM = sdas8051
OBJCOPY = objcopy
PACKIHX = packihx
# FLASHER = sinowealth-kb-tool write -p noodle
FLASHER = sinowealth-kb-tool write -p nuphy-air60
# FLASHER = sinowealth-kb-tool write -p custom \
# --flash_size 61440 \
# --bootloader_size 4096 \
# --page_size 2048 \
# --vendor_id 0xdead \
# --product_id 0xbeef

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

SMK_VERSION ?= alpha

# USB_VID ?= 0xdead
# USB_PID ?= 0xbeef
# Ease backup & restore process by keeping same vid & pid as nuphy-air60
USB_VID ?= 0x05ac
USB_PID ?= 0x024f
Expand Down
16 changes: 0 additions & 16 deletions src/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,5 @@
/* send report */
void host_keyboard_send(report_keyboard_t *report)
{
#if defined(NKRO_ENABLE) && defined(NKRO_SHARED_EP)

if (keyboard_protocol && keymap_config.nkro) {
/* The callers of this function assume that report->mods is where mods go in.
* But report->nkro.mods can be at a different offset if core keyboard does not have a report ID.
*/
report->nkro.mods = report->mods;
report->nkro.report_id = REPORT_ID_NKRO;
} else
#endif
{
#ifdef KEYBOARD_SHARED_EP
report->report_id = REPORT_ID_KEYBOARD;
#endif
}

usb_send_report(report);
}
Loading

0 comments on commit 4d30f8e

Please sign in to comment.