Skip to content

Dear correcly with backspace #9

@lpatiny

Description

@lpatiny

When we hit the 'DEL' key in the serial mode it is actually appended to the string rather than remove the last character.

This could be improved in this part of the code:

if (inChar == 13 || inChar == 10) {
// this is a carriage return;
if (serialBufferPosition > 0) {
printResult(serialBuffer, &Serial);
}
serialBufferPosition = 0;
serialBuffer[0] = '\0';
} else {
if (serialBufferPosition < SERIAL_BUFFER_LENGTH) {
serialBuffer[serialBufferPosition] = inChar;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions