File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**************************************************************************/
2
2
/*!
3
- @file cmd_sysinfo .c
3
+ @file cmd_adc .c
4
4
@author Miceuz
5
5
6
6
@brief Code to execute for cmd_sysinfo in the 'core/cmd'
46
46
47
47
/**************************************************************************/
48
48
/*!
49
- PWM command handler
49
+ ADC command handler
50
50
*/
51
51
/**************************************************************************/
52
52
@@ -55,9 +55,9 @@ void cmd_adc_read(uint8_t argc, char **argv) {
55
55
int32_t numReads = 1 ;
56
56
57
57
getNumber (argv [0 ], & channel );
58
- if (channel < 0 )
58
+ if (channel < 0 || channel > 2 )
59
59
{
60
- printf ("Invalid duty channel, only channels [0..2] avalable%s" , CFG_PRINTF_NEWLINE );
60
+ printf ("Invalid ADC channel, only channels [0..2] are avalable%s" , CFG_PRINTF_NEWLINE );
61
61
return ;
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments