3djc/enhance companion get capability (#4243)
commit55ee19b50a509b07305da9bcdf8ca0687968a7ac
author3djc <lesitewebdejc@hotmail.com>
Wed, 18 Jan 2017 06:34:08 +0000 (18 07:34 +0100)
committerBertrand Songis <bsongis@gmail.com>
Wed, 18 Jan 2017 06:34:08 +0000 (18 07:34 +0100)
tree5b7f5e87fc6f837436b55883d02e6da9b7efca02
parentd29c381c19d8b2118427765e0c66b767252fc264
3djc/enhance companion get capability (#4243)

* Add info on switches/sliders/pots setup when delivered from factory (other calls return user installed max possible)

* Fix

* getCapability() : Refine actoryInstalledSwitches, add NumTrimSwitches, remove FactoryInstalledPots & FactoryInstalledSliders;
GeneralSettings() initialization : Use `FactoryInstalledSwitches` count instead of `Switches` for default setup, and also set up correct number of sliders for X9E (4) and X7 (0).

* Enum order cosmetics.  [ci skip]
companion/src/eeprominterface.cpp
companion/src/eeprominterface.h
companion/src/firmwares/opentx/opentxinterface.cpp