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/ModbusMaster/ModbusMaster.cpp
- Revision:
- 171:fb29030d4eaf
- Parent:
- 169:c503848823aa
- Child:
- 174:515a8b684803
--- a/src/ModbusMaster/ModbusMaster.cpp Mon Oct 03 21:57:36 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp Tue Oct 04 12:22:13 2016 +0000
@@ -25,7 +25,7 @@
*****************************************************************************/
std::map<std::string,VirtualCommand> VirtualCommandMap;
-char ModbusMasterScratchBuf[1024];
+char ModbusMasterScratchBuf[512];
void ModbusMaster(void const *args)
{
logInfo("%s ModbusMaster has started...", __func__);
@@ -45,7 +45,7 @@
for (std::vector<mDot::mdot_file>::iterator i = file_list.begin(); i != file_list.end(); ++i) {
if( (strncmp( i->name, "vcmd", (strlen("input")-1)) == 0) ) {
- status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 1024);
+ status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 512);
if( status != true ) {
logInfo("(%d)read file failed, status=%d", __LINE__, status);
} else {
@@ -77,7 +77,7 @@
if( regType != REG_TYPE_NONE ) {
- status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 1024);
+ status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 512);
if( status != true ) {
logInfo("(%d)read file failed, status=%d", __LINE__, status);
} else {
