| 216 | } |
| 217 | |
| 218 | void serialCallBack(Stream& stream, char, uint16_t) |
| 219 | { |
| 220 | switch(commandBuffer.process(stream, Serial)) { |
| 221 | case LineBufferBase::Action::submit: |
| 222 | if(commandBuffer) { |
| 223 | handleCommand(String(commandBuffer)); |
| 224 | commandBuffer.clear(); |
| 225 | } |
| 226 | showPrompt(); |
| 227 | break; |
| 228 | case LineBufferBase::Action::clear: |
| 229 | showPrompt(); |
| 230 | break; |
| 231 | default:; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | } // namespace |
| 236 |
nothing calls this directly
no test coverage detected