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:
- 63:0ded43237b22
- Parent:
- 62:1b1d7918adf2
- Child:
- 64:994c14fc972c
--- a/src/CommandParser/cmd.cpp Thu Sep 15 16:17:08 2016 +0000 +++ b/src/CommandParser/cmd.cpp Thu Sep 15 21:36:05 2016 +0000 @@ -472,11 +472,19 @@ logInfo("(%d)save file failed, status=%d", __LINE__, status); } - logInfo("Sending Mail To ModbusMasterMailBox, filename=%s", argv[1]); - Message_t *mail = ModbusMasterMailBox.alloc(); - mail->action = ACTION_READ_FILE; - strncpy( mail->controlFile, argv[1], (sizeof(mail->controlFile)-1)); - ModbusMasterMailBox.put(mail); + // send a message to the modbust master + logInfo("Sending mail to ModbusMasterMailBox, filename=%s", argv[1]); + Message_t *modbus_mail = ModbusMasterMailBox.alloc(); + modbus_mail->action = ACTION_READ_FILE; + strncpy( modbus_mail->controlFile, argv[1], (sizeof(modbus_mail->controlFile)-1)); + ModbusMasterMailBox.put(modbus_mail); + + // send a message to the output master + logInfo("Sending mail to OutputMaster, filename = %s", argv[1]); + OutputControlMsg_t *output_mail = OutputMasterMailBox.alloc(); + output_mail->action = ACTION_NEW; + strncpy(output_mail->controlFile, argv[1], sizeof(output_mail->controlFile)-1); + OutputMasterMailBox.put(output_mail); } /*****************************************************************************