Skip to content

Commit 88114b3

Browse files
committed
fix some typos and text
1 parent d84f011 commit 88114b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/commands/cmd_adc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**************************************************************************/
22
/*!
3-
@file cmd_sysinfo.c
3+
@file cmd_adc.c
44
@author Miceuz
55
66
@brief Code to execute for cmd_sysinfo in the 'core/cmd'
@@ -46,7 +46,7 @@
4646

4747
/**************************************************************************/
4848
/*!
49-
PWM command handler
49+
ADC command handler
5050
*/
5151
/**************************************************************************/
5252

@@ -55,9 +55,9 @@ void cmd_adc_read(uint8_t argc, char **argv) {
5555
int32_t numReads = 1;
5656

5757
getNumber (argv[0], &channel);
58-
if(channel < 0)
58+
if(channel < 0 || channel > 2)
5959
{
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);
6161
return;
6262
}
6363

0 commit comments

Comments
 (0)