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:
- 229:0d6755d765fd
- Parent:
- 221:2a5e9902003c
- Child:
- 230:11765008ff3a
--- a/src/CommandParser/cmd.cpp Tue Oct 18 12:25:36 2016 +0000
+++ b/src/CommandParser/cmd.cpp Tue Oct 18 14:18:30 2016 +0000
@@ -638,18 +638,18 @@
void cmd_createComposite(int argc, char **argv)
{
if ( argc != 2 ) {
- printf("\rusage: create-comp control_cm_1.json\n");
+ printf("\rusage: create-comp control_comp_1.json\n");
return;
}
char data_buf[MAX_FILE_SIZE];
snprintf(data_buf, sizeof(data_buf),
"{ "
- "\"id\": \"FLOW_OVERRIDE\", "
- "\"tag\": \"i_flowswitch\", "
- "\"ca\": \"EQUAL_TO_1\", "
- "\"priority\": \"400\", "
- "\"entries\": \"2\", "
+ "\"id\": \"FLOW_OVERRIDE\", "
+ "\"tag\": \"i_flowsw01\", "
+ "\"ca\": \"EQUAL_TO_1\", "
+ "\"priority\": \"400\", "
+ "\"entries\": \"2\", "
"\"outputs\": [ "
"{"
"\"tag\": \"o_rly01\", "
@@ -1492,13 +1492,13 @@
"\"fmt\": \"%%.2f\", "
"\"vcmd\": \"\", "
"\"rfreq\": \"5\" }");
- bool rc = GLOBAL_mdot->saveUserFile("input_i_tra01.json", (void *)buf, MAX_FILE_SIZE);
+ bool rc = GLOBAL_mdot->saveUserFile("c", (void *)buf, MAX_FILE_SIZE);
if ( rc != true ) {
printf("\rFailed to save input_i_tra01.json\n");
return;
} else {
printf("\r...generated input_i_tra01.json\n");
- }
+ }
Message_t *mail = ModbusMasterMailBox.alloc();
mail->action = ACTION_READ_FILE;
