Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added API for library error code #139

Closed
wants to merge 2 commits into from

Conversation

jonghee-son
Copy link
Collaborator

Added API function to retrieve library error code.

In line 158 to 161 in Dynamixel2Arduino.cpp

int Dynamixel2Arduino::getLibErrCode()
{
  return getLastLibErrCode();
}

In line 98 to 107 in Dynamixel2Arduino.h

/**
 * @brief API for getting library error code.
 * @code
 * const int DXL_DIR_PIN = 2;
 * Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
 * Serial.print(dxl.getErr());
 * @endcode
 * @return It returns error code from library.
 */
int getLibErrCode();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant