Comunication_1
Dependents: MX106-finaltest dynamixel Arm_dynamixel_can Arm_dynamixel_can_procedurale
Diff: communication_1.cpp
- Revision:
- 5:a9648ebd6ab7
- Parent:
- 4:8933ad3f9bc2
diff -r 8933ad3f9bc2 -r a9648ebd6ab7 communication_1.cpp --- a/communication_1.cpp Wed Jul 13 15:52:48 2016 +0000 +++ b/communication_1.cpp Sat Feb 09 16:52:18 2019 +0000 @@ -137,18 +137,19 @@ // make sure we have a valid return Status[4]=0x00; + return(Status[4]); // we'll only get a reply if it was not broadcast - if (ID!=0xFE) { + //if (ID!=0xFE) { // response is always 6 bytes // 0xFF, 0xFF, ID, Length Error, Param(s) Checksum - for (int i=0; i < 6 ; i++) { - Status[i] = _SerialHalfDuplex.getc(); - } + //for (int i=0; i < 6 ; i++) { + //Status[i] = _SerialHalfDuplex.getc(); + //} - return(Status[4]); // return error code + //return(Status[4]); // return error code - } + //} } void communication_1::trigger(void) {