From 16870412679225d1a3b46c78928757deb713ae08 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 19 Mar 2013 16:05:53 +0900 Subject: Add COMMAND_ENABLE build option --- common/command.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/command.h b/common/command.h index dafd4d0f38..be739fafe8 100644 --- a/common/command.h +++ b/common/command.h @@ -18,8 +18,12 @@ along with this program. If not, see . #ifndef COMMAND_H #define COMMAND +#ifdef COMMAND_ENABLE bool command_proc(uint8_t code); /* This allows to extend commands. Return 0 when command is not processed. */ bool command_extra(uint8_t code); +#else +#define command_proc(code) false +#endif #endif -- cgit v1.2.3