Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lwshell/src/lwshell/lwshell.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ prv_parse_input(lwshell_t* lwobj) {
size_t s_len;
char* str;

/*
/*
* Check string length and compare with buffer pointer
* Must be more than `1` character since we have to include end of line
*/
Expand Down Expand Up @@ -345,8 +345,10 @@ lwshell_input_ex(lwshell_t* lwobj, const void* in_data, size_t len) {
break;
}
default: {
#if LWSHELL_CFG_USE_OUTPUT
char str[2] = {p_data[idx], 0};
LWSHELL_OUTPUT(lwobj, str);
#endif /* LWSHELL_CFG_USE_OUTPUT */
if (p_data[idx] >= 0x20 && p_data[idx] < 0x7F) {
LWSHELL_ADD_CH(lwobj, p_data[idx]);
}
Expand Down