]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/command.h
Merge branch 'rhaberkorn-serial-mouse'
[tmk_firmware.git] / common / command.h
index dafd4d0f38c0e68de555b08e90fc60d8e7af5ae3..be739fafe822d17b3ceda61048df010f6cfd44d1 100644 (file)
@@ -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