mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
AP_IOMCU: fixed DSM bind
This commit is contained in:
parent
3ab1cd4808
commit
184c05bc70
@ -795,7 +795,7 @@ void AP_IOMCU::bind_dsm(uint8_t mode)
|
||||
return;
|
||||
}
|
||||
uint16_t reg = mode;
|
||||
write_registers(PAGE_SETUP, PAGE_REG_SETUP_DSM_BIND, ®);
|
||||
write_registers(PAGE_SETUP, PAGE_REG_SETUP_DSM_BIND, 1, ®);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -78,6 +78,7 @@ enum iopage {
|
||||
#define PAGE_REG_SETUP_SBUS_RATE 19
|
||||
#define PAGE_REG_SETUP_IGNORE_SAFETY 20 /* bitmask of surfaces to ignore the safety status */
|
||||
#define PAGE_REG_SETUP_HEATER_DUTY_CYCLE 21
|
||||
#define PAGE_REG_SETUP_DSM_BIND 22
|
||||
|
||||
// config page registers
|
||||
#define PAGE_CONFIG_PROTOCOL_VERSION 0
|
||||
|
Loading…
Reference in New Issue
Block a user