Sfoglia il codice sorgente

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

stefan 10 mesi fa
parent
commit
f84d0a8c1c
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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);
                     }
                 }