Dyanamixel
Dependents: YOZAKURA_ARM YOZAKURA_ARM_USB YOZAKURA_ARM_USB_Keyboard YOZAKURA_ARM_Keyboard0424 ... more
Diff: AX12.cpp
- Revision:
- 9:0927a7b74806
- Parent:
- 6:5ce46b6748fd
- Child:
- 12:7affd17fcb66
- Child:
- 14:874b672847bc
--- a/AX12.cpp Fri Apr 24 03:21:14 2015 +0000 +++ b/AX12.cpp Fri Apr 24 17:07:46 2015 +0000 @@ -385,6 +385,8 @@ } } // if (ID!=0xFE) + + if(AX12_ERROR_DEBUG && Status[4]!=0) printf("\nError Code : 0x%x\n", Status[4]); return(Status[4]); } @@ -492,5 +494,7 @@ } + if(AX12_ERROR_DEBUG && Status[4]!=0) printf("\nError Code : 0x%x\n", Status[4]); + return(Status[4]); // return error code }