X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/e11741b84791eb294c7204d97d0744eeeb3ec600..f71b7a038ec2ba5eea22b2647b841239eaf93aa8:/project/cmd_tbl.h?ds=inline diff --git a/project/cmd_tbl.h b/project/cmd_tbl.h index 0bc977d..83d3880 100644 --- a/project/cmd_tbl.h +++ b/project/cmd_tbl.h @@ -93,7 +93,9 @@ void cmd_lm75b_gettemp(uint8_t argc, char **argv); void cmd_sd_dir(uint8_t argc, char **argv); #endif +#ifdef CFG_PWM void cmd_pwm(uint8_t argc, char **argv); +#endif #define CMD_NOPARAMS "This command has no parameters" @@ -155,7 +157,10 @@ cmd_t cmd_tbl[] = #ifdef CFG_SDCARD { "d", 0, 1, 0, cmd_sd_dir , "Dir (SD Card)" , "'d []'" }, #endif - { "pwm", 0, 2, 0, cmd_pwm, "PWM Control", "'pwm [] []'" }, + + #ifdef CFG_PWM + { "M", 2, 2, 0, cmd_pwm , "PWM Control" , "'M [] []'" }, + #endif }; #endif \ No newline at end of file