Prevent RELAY1 control via IOCTL if DSM bind feature is enabled

This commit is contained in:
Jean Cyr
2013-07-07 19:04:30 -04:00
parent 35711280df
commit dab652faf6
3 changed files with 47 additions and 16 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ controls_tick() {
/* map raw inputs to mapped inputs */
/* XXX mapping should be atomic relative to protocol */
for (unsigned i = 0; i < (r_raw_rc_count & 0x7fff); i++) {
for (unsigned i = 0; i < r_raw_rc_count; i++) {
/* map the input channel */
uint16_t *conf = &r_page_rc_input_config[i * PX4IO_P_RC_CONFIG_STRIDE];