X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcommand.h;h=be739fafe822d17b3ceda61048df010f6cfd44d1;hb=b9e265368fde73daff069788dcb58c8230d01b32;hp=4888f5ee0bbcf5e4de53127e715cc57fc66ce665;hpb=62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26;p=tmk_firmware.git diff --git a/common/command.h b/common/command.h index 4888f5e..be739fa 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 -uint8_t command_proc(void); +#ifdef COMMAND_ENABLE +bool command_proc(uint8_t code); /* This allows to extend commands. Return 0 when command is not processed. */ -uint8_t command_extra(void); +bool command_extra(uint8_t code); +#else +#define command_proc(code) false +#endif #endif