|
|
| version 1.6.4.5, 2013/10/08 11:30:00 | version 1.9, 2013/11/20 16:26:51 |
|---|---|
| Line 139 cli_Cmd_Config(void * __restrict cli_buffer, int idx, | Line 139 cli_Cmd_Config(void * __restrict cli_buffer, int idx, |
| { | { |
| linebuffer_t *buf = cli_buffer; | linebuffer_t *buf = cli_buffer; |
| if (idx == sizeof idx * 8) | if (idx == sizeof idx * 8 - 1) |
| return RETCODE_ERR; | return RETCODE_ERR; |
| buf->line_level++; | buf->line_level++; |
| cli_Printf(buf, "Enter to config level %d\n", buf->line_level); | |
| return RETCODE_OK; | return RETCODE_OK; |
| } | } |
| Line 163 cli_Cmd_End(void * __restrict cli_buffer, int idx, cha | Line 164 cli_Cmd_End(void * __restrict cli_buffer, int idx, cha |
| return cli_Cmd_Exit(cli_buffer, idx, args); | return cli_Cmd_Exit(cli_buffer, idx, args); |
| buf->line_level--; | buf->line_level--; |
| cli_Printf(buf, "Enter to config level %d\n", buf->line_level); | |
| return RETCODE_OK; | return RETCODE_OK; |
| } | } |
| Line 180 cli_Cmd_Top(void * __restrict cli_buffer, int idx, cha | Line 182 cli_Cmd_Top(void * __restrict cli_buffer, int idx, cha |
| linebuffer_t *buf = cli_buffer; | linebuffer_t *buf = cli_buffer; |
| buf->line_level ^= buf->line_level; | buf->line_level ^= buf->line_level; |
| cli_Printf(buf, "Enter to top config level %d\n", buf->line_level); | |
| return RETCODE_OK; | return RETCODE_OK; |
| } | } |
| Line 196 cli_Cmd_WhereAmI(void * __restrict cli_buffer, int idx | Line 199 cli_Cmd_WhereAmI(void * __restrict cli_buffer, int idx |
| { | { |
| linebuffer_t *buf = cli_buffer; | linebuffer_t *buf = cli_buffer; |
| cli_Printf(buf, "Current console level is %d\n", buf->line_level); | cli_Printf(buf, "Current config level is %d\n", buf->line_level); |
| return RETCODE_OK; | return RETCODE_OK; |
| } | } |