Revision 27286ba5 core/src/aos_shell.c
| core/src/aos_shell.c | ||
|---|---|---|
| 585 | 585 |
return _mapAscii2Custom(str1[i]) - _mapAscii2Custom(str2[i]); |
| 586 | 586 |
} |
| 587 | 587 |
|
| 588 |
/** |
|
| 589 |
* @brief Read input from a channel as long as there is data available. |
|
| 590 |
* |
|
| 591 |
* @param[in] shell Pointer to the shell object. |
|
| 592 |
* @param[in] channel The channel to read from. |
|
| 593 |
* @param[out] n Pointer to a variable to store the number of read characters to. |
|
| 594 |
* |
|
| 595 |
* @return |
|
| 596 |
*/ |
|
| 588 | 597 |
static aos_status_t _readChannel(aos_shell_t* shell, AosShellChannel* channel, size_t* n) |
| 589 | 598 |
{
|
| 590 | 599 |
aosDbgCheck(shell != NULL); |
| ... | ... | |
| 997 | 1006 |
shell->inputdata.noinput = true; |
| 998 | 1007 |
} |
| 999 | 1008 |
return AOS_SUCCESS; |
| 1000 |
break; |
|
| 1001 | 1009 |
} |
| 1002 | 1010 |
|
| 1003 | 1011 |
case AOS_SHELL_ACTION_ESCSTART: |
| ... | ... | |
| 1012 | 1020 |
{
|
| 1013 | 1021 |
// do nothing (ignore input) and read next byte |
| 1014 | 1022 |
continue; |
| 1015 |
break; |
|
| 1016 | 1023 |
} |
| 1017 | 1024 |
} /* end of switch */ |
| 1018 | 1025 |
|
Also available in: Unified diff