Workaround for compiler warnings when console disabled.
This commit is contained in:
parent
f108623011
commit
b110884a6d
@ -350,10 +350,11 @@ static bool command_common(uint8_t code)
|
|||||||
case KC_N:
|
case KC_N:
|
||||||
clear_keyboard(); //Prevents stuck keys.
|
clear_keyboard(); //Prevents stuck keys.
|
||||||
keyboard_nkro = !keyboard_nkro;
|
keyboard_nkro = !keyboard_nkro;
|
||||||
if (keyboard_nkro)
|
if (keyboard_nkro) {
|
||||||
print("NKRO: on\n");
|
print("NKRO: on\n");
|
||||||
else
|
} else {
|
||||||
print("NKRO: off\n");
|
print("NKRO: off\n");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case KC_ESC:
|
case KC_ESC:
|
||||||
@ -607,10 +608,11 @@ static bool mousekey_console(uint8_t code)
|
|||||||
print("?");
|
print("?");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (mousekey_param)
|
if (mousekey_param) {
|
||||||
xprintf("M%d> ", mousekey_param);
|
xprintf("M%d> ", mousekey_param);
|
||||||
else
|
} else {
|
||||||
print("M>" );
|
print("M>" );
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,7 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#ifndef NODEBUG_H
|
#ifndef NODEBUG_H
|
||||||
#define NODEBUG_H 1
|
#define NODEBUG_H 1
|
||||||
|
|
||||||
|
#if !defined(NO_DEBUG)
|
||||||
#define NO_DEBUG
|
#define NO_DEBUG
|
||||||
|
#endif
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#undef NO_DEBUG
|
#undef NO_DEBUG
|
||||||
|
|
||||||
|
@ -99,9 +99,9 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
|
|||||||
|
|
||||||
#else /* NO_PRINT */
|
#else /* NO_PRINT */
|
||||||
|
|
||||||
#define xprintf
|
#define xprintf(s,...)
|
||||||
#define print
|
#define print(s)
|
||||||
#define println
|
#define println(s)
|
||||||
#define print_set_sendchar(func)
|
#define print_set_sendchar(func)
|
||||||
#define print_dec(data)
|
#define print_dec(data)
|
||||||
#define print_decs(data)
|
#define print_decs(data)
|
||||||
@ -127,6 +127,7 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t));
|
|||||||
#define print_val_bin_reverse8(v)
|
#define print_val_bin_reverse8(v)
|
||||||
#define print_val_bin_reverse16(v)
|
#define print_val_bin_reverse16(v)
|
||||||
#define print_val_bin_reverse32(v)
|
#define print_val_bin_reverse32(v)
|
||||||
|
#define init_printf(s,ss)
|
||||||
|
|
||||||
#endif /* NO_PRINT */
|
#endif /* NO_PRINT */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user