use from Ernesto Palacios
Dependents: RoboticArm DXL_SDK_Porting_Test
Fork of Matrix by
Diff: Matrix.cpp
- Revision:
- 8:1774aa06ab99
- Parent:
- 6:3f01dc2d77f1
diff -r 7a564cf28ab6 -r 1774aa06ab99 Matrix.cpp --- a/Matrix.cpp Thu Feb 02 04:29:41 2017 +0000 +++ b/Matrix.cpp Sat Feb 11 13:07:13 2017 +0000 @@ -13,6 +13,20 @@ #include "mbed.h" #include "Matrix.h" + +extern Serial pc; + + +#if (DEBUG) + #define DBGMSG(x) pc.printf x; +#else + #define DBGMSG(x) +#endif + + + + + /// Rows by Cols Matrix Constructor Matrix::Matrix(int Rows, int Cols): _nRows(Rows), _nCols(Cols) { @@ -112,7 +126,7 @@ if( index > Mat._nRows + 1) { - printf("\n\nERROR:\nRow out of Limits @ AddRow()\n"); + DBGMSG(printf("\n\nERROR:\nRow out of Limits @ AddRow()\n")) }else{