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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/CommandParser/cmd.cpp
- Revision:
- 93:1553fb156915
- Parent:
- 92:9a6a1adca19c
- Child:
- 96:807f04bd5256
--- a/src/CommandParser/cmd.cpp Tue Sep 20 19:19:34 2016 +0000 +++ b/src/CommandParser/cmd.cpp Tue Sep 20 19:31:38 2016 +0000 @@ -371,9 +371,9 @@ *****************************************************************************/ void cmd_ccf(int argc, char **argv) { - if ( argc != 5 ) { - printf("\rusage: ccf <filename> <id> <input> <output>\n"); - printf("\rexample: ccf control_sp_1.json SPC_01 i_tra03 o_rly1\n"); + if ( argc != 6 ) { + printf("\rusage: ccf <filename> <id> <input> <output> <direction>\n"); + printf("\rexample: ccf control_sp_1.json SPC_01 i_tra01 o_rly1 1\n"); return; } @@ -386,11 +386,11 @@ "\"output\": \"%s\", " "\"setpoint\": \"100\", " "\"prodfact\": \"100\", " - "\"actingDir\": \"0\", " + "\"actingDir\": \"%s\", " "\"halert\": \"115\", " "\"lalert\": \"85\", " "\"hfs\": \"130\", " - "\"lfs\": \"70\", ", argv[2], argv[3], argv[4] + "\"lfs\": \"70\", ", argv[2], argv[3], argv[4], argv[5] ); bool status = GLOBAL_mdot->saveUserFile(argv[1], (void *)data_buf, 1024);