mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_PiccoloCAN: reimplement with BinarySemaphore
This commit is contained in:
parent
f0aa2a65e4
commit
9c1e145c8f
@ -140,7 +140,7 @@ bool AP_PiccoloCAN::add_interface(AP_HAL::CANIface* can_iface) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_can_iface->set_event_handle(&_event_handle)) {
|
||||
if (!_can_iface->set_event_handle(&sem_handle)) {
|
||||
debug_can(AP_CANManager::LOG_ERROR, "PiccoloCAN: Cannot add event handle\n\r");
|
||||
return false;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ private:
|
||||
char _thread_name[16];
|
||||
uint8_t _driver_index;
|
||||
AP_HAL::CANIface* _can_iface;
|
||||
HAL_EventHandle _event_handle;
|
||||
HAL_BinarySemaphore sem_handle;
|
||||
|
||||
AP_PiccoloCAN_Servo _servos[PICCOLO_CAN_MAX_NUM_SERVO];
|
||||
AP_PiccoloCAN_ESC _escs[PICCOLO_CAN_MAX_NUM_ESC];
|
||||
|
Loading…
Reference in New Issue
Block a user