Add / correct comments
This commit is contained in:
parent
3db784f3c7
commit
20f93404a7
3 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue