Strange behavior with the serial member function printf. It is printing the same line 3 times. Modified the example program for changing led brightness. Using the Cutecom terminal program, Ubuntu 11.04. Attaching a screenshot of the behavior and my code.
You can see from the screen shot that Cutecom terminal settings are 9600 baud, 8 data bits, 1 stop bit, no parity bit, and no handshaking.
When I type a u or d, the character is correctly printed once in the Cutecom terminal. The problem lies in the second call to pc.printf to print the brightness. It prints the same line 3 times.
Bug? or what am I doing wrong?
/media/uploads/willydlw/mbed_serial.txt
Strange behavior with the serial member function printf. It is printing the same line 3 times. Modified the example program for changing led brightness. Using the Cutecom terminal program, Ubuntu 11.04. Attaching a screenshot of the behavior and my code.
You can see from the screen shot that Cutecom terminal settings are 9600 baud, 8 data bits, 1 stop bit, no parity bit, and no handshaking.
When I type a u or d, the character is correctly printed once in the Cutecom terminal. The problem lies in the second call to pc.printf to print the brightness. It prints the same line 3 times.
Bug? or what am I doing wrong?
/media/uploads/willydlw/mbed_serial.txt