mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
camera_trigger fix pin_bitmask width
This commit is contained in:
@@ -47,7 +47,7 @@ void CameraInterfaceSeagull::setup()
|
|||||||
if (_pins[i] >= 0 && _pins[i + 1] >= 0) {
|
if (_pins[i] >= 0 && _pins[i + 1] >= 0) {
|
||||||
|
|
||||||
// Initialize the interface
|
// Initialize the interface
|
||||||
uint8_t pin_bitmask = (1 << _pins[i + 1]) | (1 << _pins[i]);
|
uint32_t pin_bitmask = (1 << _pins[i + 1]) | (1 << _pins[i]);
|
||||||
up_pwm_trigger_init(pin_bitmask);
|
up_pwm_trigger_init(pin_bitmask);
|
||||||
|
|
||||||
// Set both interface pins to disarmed
|
// Set both interface pins to disarmed
|
||||||
|
|||||||
Reference in New Issue
Block a user