From 1a0bac8bccf0e156d2f3c5f14a7214f9677b6370 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 21 Jun 2016 17:42:29 -0400 Subject: Warning reductions (#430) Warning reductions--- tmk_core/common/command.c | 3 +-- tmk_core/common/command.h | 1 + tmk_core/common/led.h | 3 +++ tmk_core/protocol/lufa/bluetooth.c | 1 - tmk_core/protocol/lufa/bluetooth.h | 2 ++ 5 files changed, 7 insertions(+), 3 deletions(-) (limited to 'tmk_core') diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 024d7c67a..187a2b949 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -66,7 +66,6 @@ static bool mousekey_console(uint8_t code); static void mousekey_console_help(void); #endif -static uint8_t numkey2num(uint8_t code); static void switch_default_layer(uint8_t layer); @@ -763,7 +762,7 @@ static bool mousekey_console(uint8_t code) /*********************************************************** * Utilities ***********************************************************/ -static uint8_t numkey2num(uint8_t code) +uint8_t numkey2num(uint8_t code) { switch (code) { case KC_1: return 1; diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h index 92b18849b..a729e4b1e 100644 --- a/tmk_core/common/command.h +++ b/tmk_core/common/command.h @@ -27,6 +27,7 @@ bool command_extra(uint8_t code); bool command_console_extra(uint8_t code); #ifdef COMMAND_ENABLE +uint8_t numkey2num(uint8_t code); bool command_proc(uint8_t code); #else #define command_proc(code) false diff --git a/tmk_core/common/led.h b/tmk_core/common/led.h index 2e18dc2af..9dc898780 100644 --- a/tmk_core/common/led.h +++ b/tmk_core/common/led.h @@ -37,6 +37,9 @@ void led_set(uint8_t usb_led); /* keyboard-specific LED functionality */ void led_set_kb(uint8_t usb_led); + +void led_init_ports(void); + #ifdef __cplusplus } #endif diff --git a/tmk_core/protocol/lufa/bluetooth.c b/tmk_core/protocol/lufa/bluetooth.c index ed66e52c1..549606162 100644 --- a/tmk_core/protocol/lufa/bluetooth.c +++ b/tmk_core/protocol/lufa/bluetooth.c @@ -19,7 +19,6 @@ along with this program. If not, see . #include "report.h" #include "print.h" #include "debug.h" -#include "../serial.h" #include "bluetooth.h" void bluefruit_keyboard_print_report(report_keyboard_t *report) diff --git a/tmk_core/protocol/lufa/bluetooth.h b/tmk_core/protocol/lufa/bluetooth.h index 01f07e8e6..78ece1cd0 100644 --- a/tmk_core/protocol/lufa/bluetooth.h +++ b/tmk_core/protocol/lufa/bluetooth.h @@ -18,6 +18,8 @@ along with this program. If not, see . #ifndef BLUETOOTH_H #define BLUETOOTH_H +#include "../serial.h" + void bluefruit_serial_send(uint8_t data); /* -- cgit v1.2.3