New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devo7e-256 bugfix for original switch mod #26
Conversation
…iginal switch mod support.
…f no pots are installed.
* u7e_5.0.0_switch_bug: Put conditionals around case statements for pots to prevent reading if no pots are installed. Clean up conditionals and syntax errors for switches due to bug in original switch mod support.
tested and working fine on stock 7e firmware with no switch mods, ult7e with no switchmods and ult7e with 4x3, 2x2 and 2pots |
…t lets use this for now until we actually need to fix it.
* master: Update cc2500.c Add config-cc2500 0x01 for CC2500 modules with GDO0 connected to RX_EN and GDO2 connected to TX_EN of PA/LNA. Add ability to configure modules in hardware.ini Fix [Deviation 0000704], S-FHSS freq tuning options incorrect initialization
* u7e_5.0.0_swcfg: Change case vs conditional handling to prevent ghost switches. Fix too many inputs. Need to figure out "HAS_MORE_THAN_32_INPUTS", but lets use this for now until we actually need to fix it. First commit. Still testing.
* u7e_5.0.0_swcfg: Key mapping changes First pass at updating emu with new switch configurations.
} | ||
} else { | ||
if ((~Transmitter.ignore_src & SWITCH_3x1) == SWITCH_3x1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the large amount of highly repetitive code. Can you try to make it a loop over INP_SW* ?
Hi Victzh, I'd be glad to. Problem is, I'm not quite sure how to do that. I'm not that great a programmer. Any chance you could point me in the right direction? Thanks a lot for taking a look at this! |
* master: added protocol documentation for CX-10A/CX-10 blue
* master: (37 commits) Cleanup Fix bind Add accelerometer recalibration flag Fix emulator build Clean up Add FQ777-951 protocol format Added whitening. Improved telemetry update. Fix E010 didn't work with some transmitter ID Fix bind issue with some transmitter ID Fix headless mode Cleared top bit of rx_tx_addr[1] for easier storage in options Better check of ACK when binding Updated comments Removed bind magic numbers. Increased ARD to 2500us Changed to use single payload size. Code tidy. Improved data packet and telemetry parsing Initial commit of iNav protocol Allow semi arbitrary transmitter ID Add H301 format Fix ID and 8 channels ...
Bugfix for original extra switch mod in devo7e-256.