Merge branch 'fix/shell_ls_cmd' into 'develop'
border check fixed See merge request !32
This commit is contained in:
commit
d426ce017c
@ -67,7 +67,7 @@ static void *cmd_list_all_commands_cb(const char *cmd)
|
|||||||
int i, len = list_get_len(&shell_object.command_list);
|
int i, len = list_get_len(&shell_object.command_list);
|
||||||
|
|
||||||
drv_write(shell_object.shell_device, greeter, strlen(greeter));
|
drv_write(shell_object.shell_device, greeter, strlen(greeter));
|
||||||
for(i = 0; i < (len - 1); i++) {
|
for(i = 0; i < (len); i++) {
|
||||||
if(NULL != it) {
|
if(NULL != it) {
|
||||||
struct command *command = (struct command *)it->data;
|
struct command *command = (struct command *)it->data;
|
||||||
drv_write(shell_object.shell_device, command->command, strlen(command->command));
|
drv_write(shell_object.shell_device, command->command, strlen(command->command));
|
||||||
|
Loading…
Reference in New Issue
Block a user