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.
Dependents: mbed_controller_demo
Fork of CMDB by
Revision 27:ed36b4c73d4c, committed 2015-03-12
- Comitter:
- hillkim7
- Date:
- Thu Mar 12 12:05:53 2015 +0000
- Parent:
- 26:34c65d3f6da0
- Commit message:
- Fix compile error.; Error: "mbed::Stream::Stream(const mbed::Stream &)"
Changed in this revision
| cmdb.cpp | Show annotated file Show diff for this revision Revisions of this file |
| cmdb.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/cmdb.cpp Wed Feb 15 09:50:53 2012 +0000
+++ b/cmdb.cpp Thu Mar 12 12:05:53 2015 +0000
@@ -67,7 +67,7 @@
//------------------------------------------------------------------------------
-Cmdb::Cmdb(const Serial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int)) :
+Cmdb::Cmdb(Serial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int)) :
serial(_serial), cmds(_cmds) {
echo = true;
bold = true;
@@ -833,7 +833,7 @@
//Warm Boot
case CID_BOOT:
- mbed_reset();
+ //mbed_reset();
break;
//Sends an ANSI escape code to clear the screen.
--- a/cmdb.h Wed Feb 15 09:50:53 2012 +0000
+++ b/cmdb.h Thu Mar 12 12:05:53 2015 +0000
@@ -417,7 +417,7 @@
* @param serial a Serial port used for communication.
* @param cmds a vector with the command table.
*/
- Cmdb(const Serial& _serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int) );
+ Cmdb(Serial &_serial, std::vector<cmd>& _cmds, void (*_callback)(Cmdb&,int) );
/** The version of the Command Interpreter.
*
@@ -813,7 +813,7 @@
/** Internal Serial Port Storage.
*/
- Serial serial;
+ Serial &serial;
/** Internal Command Table Vector Storage.
*
