Browse Source

replaced forgotten direct write calls - would have bypassed the transport layer

stefan 9 months ago
parent
commit
f84d0a8c1c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/shellmatta.c

+ 4 - 4
src/shellmatta.c

@@ -340,13 +340,13 @@ static shellmatta_retCode_t shellmatta_processDataInt(shellmatta_handle_t     ha
                 {
                     if (inst->echoEnabled)
                     {
-                        inst->write("\r\nCommand: ", 11u);
-                        inst->write(inst->buffer, inst->inputCount);
-                        inst->write(" not found", 10u);
+                        SHELLMATTA_WRITE("\r\nCommand: ", 11u);
+                        SHELLMATTA_WRITE(inst->buffer, inst->inputCount);
+                        SHELLMATTA_WRITE(" not found", 10u);
                     }
                     else
                     {
-                        inst->write("\r\nCommand not found!", 20u);
+                        SHELLMATTA_WRITE("\r\nCommand not found!", 20u);
                     }
                 }