Quote:
Originally Posted by Piotrsko
Long time ago in a galaxy far far away, we had a command for terminal programs run on command prompt : Echo on. Default is "off"
|
After getting a pin soldered on the serial buffer, I can confirm that echo defaults to ON, like this code shows.
Code:
while (1) {
wdt_reset();
x = uart_getch();
if (x >= 0) {
if (x != 0x0d) {
// not a CR
uart_putch(x); // echo the character back
if (cmdpos < (sizeof(cmd) - 1)) {
cmd[cmdpos++] = x; // add character to command string
cmd[cmdpos] = 0; // and terminate command string
}
}