HIL: Move to 0-based index

This commit is contained in:
Lorenz Meier 2015-02-03 13:45:34 +01:00
parent aeb8642117
commit 24d1a9b955
1 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ HIL *g_hil;
} // namespace
HIL::HIL() :
CDev("hilservo", PWM_OUTPUT_DEVICE_PATH/*"/dev/hil" XXXL*/),
CDev("hilservo", PWM_OUTPUT0_DEVICE_PATH/*"/dev/hil" XXXL*/),
_mode(MODE_NONE),
_update_rate(50),
_current_update_rate(0),
@ -751,7 +751,7 @@ test(void)
{
int fd;
fd = open(PWM_OUTPUT_DEVICE_PATH, 0);
fd = open(PWM_OUTPUT0_DEVICE_PATH, 0);
if (fd < 0) {
puts("open fail");