summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/command.h4
1 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
#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