AP_IOMCU: fixed DSM bind

This commit is contained in:
Andrew Tridgell 2018-11-01 09:18:13 +11:00
parent 3ab1cd4808
commit 184c05bc70
2 changed files with 2 additions and 1 deletions

View File

@ -795,7 +795,7 @@ void AP_IOMCU::bind_dsm(uint8_t mode)
return; return;
} }
uint16_t reg = mode; uint16_t reg = mode;
write_registers(PAGE_SETUP, PAGE_REG_SETUP_DSM_BIND, &reg); write_registers(PAGE_SETUP, PAGE_REG_SETUP_DSM_BIND, 1, &reg);
} }
/* /*

View File

@ -78,6 +78,7 @@ enum iopage {
#define PAGE_REG_SETUP_SBUS_RATE 19 #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_IGNORE_SAFETY 20 /* bitmask of surfaces to ignore the safety status */
#define PAGE_REG_SETUP_HEATER_DUTY_CYCLE 21 #define PAGE_REG_SETUP_HEATER_DUTY_CYCLE 21
#define PAGE_REG_SETUP_DSM_BIND 22
// config page registers // config page registers
#define PAGE_CONFIG_PROTOCOL_VERSION 0 #define PAGE_CONFIG_PROTOCOL_VERSION 0