mbed_controller / CMDB

Dependents:   mbed_controller_demo

Fork of CMDB by Wim van der Vegt

Files at this revision

API Documentation at this revision

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.
      *