Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CDC.cpp
- Revision:
- 9:9a4c81493a3d
- Parent:
- 6:c454f88524d6
- Child:
- 10:8be92db98bf4
--- a/CDC.cpp Fri Jan 15 20:59:51 2016 +0000 +++ b/CDC.cpp Fri Jan 15 21:27:42 2016 +0000 @@ -93,7 +93,7 @@ CAN_DispMsg[0].data[2] = 0x02; // Writing to row 2 CAN_DispMsg[1].data[2] = 0x02; // Writing to row 2 CAN_DispMsg[2].data[2] = 0x02; // Writing to row 2 - display("PETTERS BT"); + display("PETTERS BT", 2); } /** Handles an incoming (RX) frame **/ @@ -207,7 +207,7 @@ /** Writes the provided text on the SID. NOTE the character set used by the SID is slightly nonstandard. "Normal" characters should work fine. **/ -void CDC::display(char text[]) { +void CDC::display(char text[], char row) { if (!text) { return; } @@ -225,7 +225,7 @@ for (i = 0; i < n; i++) { display_text[i] = text[i]; } - for (i = n + 1; i < 15; i++) { + for (i = n; i < 15; i++) { display_text[i] = 0; }