commit | 38ecf5b41fe63b707e6ee02f5845c0e4bd32e573 | [log] [tgz] |
---|---|---|
author | Jim Paris <jim@jtan.com> | Fri Apr 05 16:52:50 2019 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Apr 08 19:38:01 2019 -0400 |
tree | e7817c1adbdc1fd5d581e92a0ec4049bf25c408b | |
parent | d38ffedd4dd1f590dd192d711cad8b3dfc11f456 [diff] |
shell: Consume all input data A transport may receive multiple bytes of data between shell_thread wakeups, but state_collect is only called once per wakeup. So it must process all data, and only return when all data from the transport has been consumed. This is mostly handled correctly, but there were two places where state_collect would return early instead. Signed-off-by: Jim Paris <jim@jtan.com>