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.
Dependencies: mbed WattBob_TextLCD MCP23017 globals
Diff: cmd_io.cpp
- Revision:
- 1:7cb0ee7f57b6
- Parent:
- 0:485df37a69ec
--- a/cmd_io.cpp Thu Dec 01 04:16:04 2011 +0000 +++ b/cmd_io.cpp Thu Dec 01 08:40:29 2011 +0000 @@ -146,11 +146,13 @@ sprintf(buffer, "%u\n", (int)command->result_data[0]); } if (command->nos_data == 2) { - sprintf(buffer, "%u %u\n", (int)command->result_data[0], (int)command->result_data[1]); + sprintf(buffer, "%u\n", (int)command->result_data[1]); } - if (command->nos_data == 7) { - sprintf(buffer, "%u %u %u %u %u %u %u\n", (int)command->result_data[0], (int)command->result_data[1], (int)command->result_data[2], (int)command->result_data[3], - (int)command->result_data[4], (int)command->result_data[5], (int)command->result_data[6]); + if (command->nos_data == 3) { + sprintf(buffer, "%u\n", (int)command->result_data[2]); + } + if (command->nos_data == 4) { + sprintf(buffer, "%u\n", (int)command->result_data[3]); } // // send string