PX4 IO firmware: Do not reject trim

This commit is contained in:
Lorenz Meier 2015-06-09 23:06:20 +02:00
parent 8259102bf1
commit 9bb91ea031
1 changed files with 6 additions and 0 deletions

View File

@ -630,6 +630,12 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value)
r_page_setup[PX4IO_P_SETUP_PWM_REVERSE] = value;
break;
case PX4IO_P_SETUP_TRIM_ROLL:
case PX4IO_P_SETUP_TRIM_PITCH:
case PX4IO_P_SETUP_TRIM_YAW:
r_page_setup[offset] = value;
break;
default:
return -1;
}