refactored printIntegerInBase to work without a buffer + minor cleanup
This commit is contained in:
parent
69be1240be
commit
f0843db46e
4 changed files with 15 additions and 13 deletions
|
|
@ -72,7 +72,7 @@ uint8_t protocol_execute_line(char *line) {
|
|||
void protocol_process()
|
||||
{
|
||||
char c;
|
||||
while((c = serial_read()) != 0xff)
|
||||
while((c = serial_read()) != SERIAL_NO_DATA)
|
||||
{
|
||||
if((char_counter > 0) && ((c == '\n') || (c == '\r'))) { // Line is complete. Then execute!
|
||||
line[char_counter] = 0; // treminate string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue