2 comments:
File payloads/libpayload/drivers/serial/qcom_qupv3_serial.c:
Patch Set #35, Line 314: if (data == 0xa)
Why is this data special?
This is a newline... if you look through the serial drivers, you can see that pretty much all of them insert carriage returns in front of newlines (because that's what you need to make it look right on a serial terminal). We could write '\r' and '\n' instead of 0xa and 0xd here to make that more obvious.
Patch Set #35, Line 316: uart_qupv3_tx_byte(data);
If you want: […]
That is not what this does, there's no 'else' up there. If the character is a newline it will print a carriage return in front of it, but it will still print the newline as well.
To view, visit change 35960. To unsubscribe, or for help writing mail filters, visit settings.