So streaming over network dos not hog all of main loop we now issue one net command...
authorJim Morris <morris@wolfman.com>
Sun, 14 May 2017 21:31:48 +0000 (14:31 -0700)
committerJim Morris <morris@wolfman.com>
Sun, 14 May 2017 21:31:48 +0000 (14:31 -0700)
this allows another telnet connection and/or a USB serial connection to actually get a response

src/libs/Network/uip/Network.cpp

index f56e41c..d119b12 100644 (file)
@@ -388,9 +388,13 @@ void Network::init(void)
 void Network::on_main_loop(void *argument)
 {
     // issue commands here if any available
-    while(command_q->pop()) {
-        // keep feeding them until empty
-    }
+    // while(command_q->pop()) {
+    //     // keep feeding them until empty
+    // }
+
+    // issue one comamnd per iteration of main loop like USB serial does
+    command_q->pop();
+
 }
 
 // select between webserver and telnetd server