Skip to content

Commit

Permalink
fix some typos and text
Browse files Browse the repository at this point in the history
  • Loading branch information
Miceuz committed Feb 19, 2013
1 parent d84f011 commit 88114b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions project/commands/cmd_adc.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**************************************************************************/
/*!
@file cmd_sysinfo.c
@file cmd_adc.c
@author Miceuz
@brief Code to execute for cmd_sysinfo in the 'core/cmd'
Expand Down Expand Up @@ -46,7 +46,7 @@

/**************************************************************************/
/*!
PWM command handler
ADC command handler
*/
/**************************************************************************/

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

getNumber (argv[0], &channel);
if(channel < 0)
if(channel < 0 || channel > 2)
{
printf("Invalid duty channel, only channels [0..2] avalable%s", CFG_PRINTF_NEWLINE);
printf("Invalid ADC channel, only channels [0..2] are avalable%s", CFG_PRINTF_NEWLINE);
return;
}

Expand Down

0 comments on commit 88114b3

Please sign in to comment.