Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ak7451ctrl.cpp
- Revision:
- 46:5938ad2039b0
- Parent:
- 43:45225713cd58
- Child:
- 47:221ec4b404ec
--- a/ak7451ctrl.cpp Tue Dec 05 23:27:20 2017 +0000 +++ b/ak7451ctrl.cpp Wed Dec 13 23:35:23 2017 +0000 @@ -193,7 +193,7 @@ case Message::CMD_REG_WRITEN: { char address = in->getArgument(0); - int len = in->getArgument(1); + const int len = in->getArgument(1); if(len != 2){ MSG("#Error: length=%d. Only support 2byte length\r\n",len); status = AkmSensor::ERROR; @@ -231,7 +231,7 @@ } char address = in->getArgument(0); - int len = in->getArgument(1); + const int len = in->getArgument(1); if(len != 2){ MSG("#Error: length=%d. Only support 2byte length\r\n",len); status = AkmSensor::ERROR;