int main(){ system("reset"); resetServer(); commandInterpreter(); printf("\n"); return 0; }
void serialHandler(void) { char input = console.getc(); if (input != '\n' && input != '\r'){ buffer[bufferIndex++] = input; } commandInterpreter(); }
/** * handler for the serial interrupt, ignores \r and \n characters */ void serialHandler(void) { char input = console.getc(); if ((input != '\n') && (input != '\r')) { consoleInputBuffer[consoleBufferIndex++] = input; } else { commandInterpreter(); } }