feat: add support for RadioMaster TX16S MK3 (#7017)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
This commit is contained in:
co-authored by
philmoz
3djc
Peter Feerick
parent
5394e84871
commit
be496b66b6
@@ -117,6 +117,21 @@ void BoardJson::afterLoadFixups(Board::Type board, InputsTable * inputs, Switche
|
||||
}
|
||||
}
|
||||
|
||||
if (IS_RADIOMASTER_TX16SMK3(board)) {
|
||||
if (getInputIndex(inputs, "LIGHT", Board::LVT_TAG) < 0) {
|
||||
InputDefn defn;
|
||||
defn.type = AIT_FLEX;
|
||||
defn.tag = "LIGHT";
|
||||
defn.name = "Ambient light";
|
||||
defn.shortName = "Light";
|
||||
defn.flexType = FLEX_POT;
|
||||
defn.inverted = false;
|
||||
defn.cfgYaml = Board::LVT_TAG;
|
||||
defn.refYaml = Board::LVT_TAG; // non-default
|
||||
inputs->insert(inputs->end(), defn);
|
||||
}
|
||||
}
|
||||
|
||||
// Flex switches are not listed in json file for these radios
|
||||
int count = IS_RADIOMASTER_TX16S(board) || IS_RADIOMASTER_MT12(board) ? 2 : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user