Add / correct comments

This commit is contained in:
Scott Lahteine
2020-03-01 21:08:01 -06:00
parent 3db784f3c7
commit 20f93404a7
3 changed files with 6 additions and 2 deletions

View File

@ -361,6 +361,10 @@ inline void process_stream_char(const char c, uint8_t &sis, char (&buff)[MAX_CMD
sis = PS_EOL; // Skip the rest on overflow
}
/**
* Handle a line being completed. For an empty line
* keep sensor readings going and watchdog alive.
*/
inline bool process_line_done(uint8_t &sis, char (&buff)[MAX_CMD_SIZE], int &ind) {
sis = PS_NORMAL;
buff[ind] = 0;