mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-12 19:44:43 +00:00
Fixed many compiler warnings related to print being disabled
This commit is contained in:
parent
c940e87235
commit
d5b72e7bde
8 changed files with 50 additions and 45 deletions
|
@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "backlight.h"
|
||||
#include "keymap_midi.h"
|
||||
#include "bootloader.h"
|
||||
#include "eeconfig.h"
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
|
|
|
@ -27,11 +27,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "action_util.h"
|
||||
#include "action.h"
|
||||
|
||||
#ifdef DEBUG_ACTION
|
||||
//#ifdef DEBUG_ACTION
|
||||
#include "debug.h"
|
||||
#else
|
||||
#include "nodebug.h"
|
||||
#endif
|
||||
//#else
|
||||
//#include "nodebug.h"
|
||||
//#endif
|
||||
|
||||
|
||||
void action_exec(keyevent_t event)
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
#include "util.h"
|
||||
#include "action_layer.h"
|
||||
|
||||
#ifdef DEBUG_ACTION
|
||||
//#ifdef DEBUG_ACTION
|
||||
#include "debug.h"
|
||||
#else
|
||||
#include "nodebug.h"
|
||||
#endif
|
||||
//#else
|
||||
//#include "nodebug.h"
|
||||
//#endif
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -19,11 +19,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "action_macro.h"
|
||||
#include "wait.h"
|
||||
|
||||
#ifdef DEBUG_ACTION
|
||||
//#ifdef DEBUG_ACTION
|
||||
#include "debug.h"
|
||||
#else
|
||||
#include "nodebug.h"
|
||||
#endif
|
||||
//#else
|
||||
//#include "nodebug.h"
|
||||
//#endif
|
||||
|
||||
|
||||
#ifndef NO_ACTION_MACRO
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
#include "keycode.h"
|
||||
#include "timer.h"
|
||||
|
||||
#ifdef DEBUG_ACTION
|
||||
//#ifdef DEBUG_ACTION
|
||||
#include "debug.h"
|
||||
#else
|
||||
#include "nodebug.h"
|
||||
#endif
|
||||
//#else
|
||||
//#include "nodebug.h"
|
||||
//#endif
|
||||
|
||||
#ifndef NO_ACTION_TAPPING
|
||||
|
||||
|
@ -324,6 +324,7 @@ bool waiting_buffer_typed(keyevent_t event)
|
|||
return false;
|
||||
}
|
||||
|
||||
__attribute__((unused))
|
||||
bool waiting_buffer_has_anykey_pressed(void)
|
||||
{
|
||||
for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) {
|
||||
|
|
|
@ -251,6 +251,7 @@ static void print_status(void)
|
|||
#ifdef BOOTMAGIC_ENABLE
|
||||
static void print_eeconfig(void)
|
||||
{
|
||||
#ifndef NO_PRINT
|
||||
print("default_layer: "); print_dec(eeconfig_read_default_layer()); print("\n");
|
||||
|
||||
debug_config_t dc;
|
||||
|
@ -279,9 +280,12 @@ static void print_eeconfig(void)
|
|||
print("backlight_config.raw: "); print_hex8(bc.raw); print("\n");
|
||||
print(".enable: "); print_dec(bc.enable); print("\n");
|
||||
print(".level: "); print_dec(bc.level); print("\n");
|
||||
#endif
|
||||
#endif /* BACKLIGHT_ENABLE */
|
||||
|
||||
#endif /* !NO_PRINT */
|
||||
|
||||
}
|
||||
#endif
|
||||
#endif /* BOOTMAGIC_ENABLE */
|
||||
|
||||
static bool command_common(uint8_t code)
|
||||
{
|
||||
|
@ -551,6 +555,7 @@ static uint8_t mousekey_param = 0;
|
|||
|
||||
static void mousekey_param_print(void)
|
||||
{
|
||||
#ifndef NO_PRINT
|
||||
print("\n\t- Values -\n");
|
||||
print("1: delay(*10ms): "); pdec(mk_delay); print("\n");
|
||||
print("2: interval(ms): "); pdec(mk_interval); print("\n");
|
||||
|
@ -558,6 +563,8 @@ static void mousekey_param_print(void)
|
|||
print("4: time_to_max: "); pdec(mk_time_to_max); print("\n");
|
||||
print("5: wheel_max_speed: "); pdec(mk_wheel_max_speed); print("\n");
|
||||
print("6: wheel_time_to_max: "); pdec(mk_wheel_time_to_max); print("\n");
|
||||
#endif /* !NO_PRINT */
|
||||
|
||||
}
|
||||
|
||||
//#define PRINT_SET_VAL(v) print(#v " = "); print_dec(v); print("\n");
|
||||
|
|
|
@ -91,9 +91,9 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
|
|||
|
||||
#else /* NO_PRINT */
|
||||
|
||||
#define xprintf
|
||||
#define print
|
||||
#define println
|
||||
#define xprintf(fmt, ...)
|
||||
#define print(s)
|
||||
#define println(s)
|
||||
#define print_set_sendchar(func)
|
||||
#define print_dec(data)
|
||||
#define print_decs(data)
|
||||
|
|
|
@ -183,10 +183,6 @@ static void Console_Task(void)
|
|||
|
||||
Endpoint_SelectEndpoint(ep);
|
||||
}
|
||||
#else
|
||||
static void Console_Task(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue