forked from Archive/PX4-Autopilot
HIL: Move to 0-based index
This commit is contained in:
parent
aeb8642117
commit
24d1a9b955
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue