|
@@ -670,9 +670,16 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
|
|
|
|
|
|
if ((0u == cmdExecuted) && (inst->inputCount > 0))
|
|
|
{
|
|
|
- inst->write("\r\nCommand: ", 11u);
|
|
|
- inst->write(inst->buffer, inst->inputCount);
|
|
|
- inst->write(" not found", 10u);
|
|
|
+ if (inst->echoEnabled)
|
|
|
+ {
|
|
|
+ inst->write("\r\nCommand: ", 11u);
|
|
|
+ inst->write(inst->buffer, inst->inputCount);
|
|
|
+ inst->write(" not found", 10u);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ inst->write("\r\nCommand not found!", 20u);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/** -# terminate this session if no continuous mode is requested */
|