X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=common%2Fcommand.h;h=be739fafe822d17b3ceda61048df010f6cfd44d1;hb=16870412679225d1a3b46c78928757deb713ae08;hp=dafd4d0f38c0e68de555b08e90fc60d8e7af5ae3;hpb=e451c059296a4c9af7a476577fee64afb9965bca;p=max%2Ftmk_keyboard.git diff --git a/common/command.h b/common/command.h index dafd4d0f..be739faf 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