mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Fixes for binary options handling
This commit is contained in:
parent
9fb471b8cb
commit
e9d54852b9
3 changed files with 8 additions and 3 deletions
|
@ -1957,7 +1957,7 @@ void menuModelReceiverOptions(event_t event)
|
|||
case ITEM_RECEIVER_TELEMETRY:
|
||||
previousValue = reusableBuffer.receiverSetup.telemetryEnabled;
|
||||
reusableBuffer.receiverSetup.telemetryEnabled = editCheckBox(reusableBuffer.receiverSetup.telemetryEnabled, RECEIVER_OPTIONS_2ND_COLUMN, y,
|
||||
"Telemetry", attr, event);
|
||||
"Telemetry", attr, event) & PXX2_RECV_OPTION_MASK_TELEMETRY;
|
||||
if (previousValue != reusableBuffer.receiverSetup.telemetryEnabled)
|
||||
changed = true;
|
||||
break;
|
||||
|
@ -1965,7 +1965,7 @@ void menuModelReceiverOptions(event_t event)
|
|||
|
||||
case ITEM_RECEIVER_PWM_RATE:
|
||||
previousValue = reusableBuffer.receiverSetup.pwmRate;
|
||||
reusableBuffer.receiverSetup.pwmRate = editCheckBox(reusableBuffer.receiverSetup.pwmRate, RECEIVER_OPTIONS_2ND_COLUMN, y, "9ms PWM", attr, event);
|
||||
reusableBuffer.receiverSetup.pwmRate = editCheckBox(reusableBuffer.receiverSetup.pwmRate, RECEIVER_OPTIONS_2ND_COLUMN, y, "9ms PWM", attr, event) & PXX2_RECV_OPTION_MASK_FASTPWM;
|
||||
if (previousValue != reusableBuffer.receiverSetup.telemetryEnabled)
|
||||
changed = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue