Skip to content

Commit

Permalink
maybe fix V5 FPP IDs, I don't have one to test it on.
Browse files Browse the repository at this point in the history
  • Loading branch information
computergeek1507 committed Jun 20, 2024
1 parent 11cd835 commit 6e8d5ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xLights/controllers/FPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3615,9 +3615,8 @@ static bool supportedForFPPConnect(DiscoveredData* res, OutputManager* outputMan
return res->majorVersion >= 4 && res->mode == "remote";
}

if (res->typeId == 0x88 || res->typeId == 0x89 ||
res->typeId == 0x90 || res->typeId == 0x91) {
// F16V4 / F48V4 / F16V5 / F48V5
if (res->typeId >= 0x88 && res->typeId <= 0x8F) {
// F16V4 / F48V4 / F16V5 / F32V5 / F48V5
return res->mode != "bridge";
}

Expand Down Expand Up @@ -3721,8 +3720,7 @@ void FPP::MapToFPPInstances(Discovery &discovery, std::list<FPP*> &instances, Ou
void FPP::TypeIDtoControllerType(int typeId, FPP* inst) {
if (typeId < 0x80) {
inst->fppType = FPP_TYPE::FPP;
} else if (typeId == 0x88 || typeId == 0x89 ||
typeId == 0x90 || typeId == 0x91) {
} else if (typeId >= 0x88 && typeId <= 0x8F) {
inst->fppType = FPP_TYPE::FALCONV4V5;
} else if (typeId == 0xC2 || typeId == 0xC3) {
inst->fppType = FPP_TYPE::ESPIXELSTICK;
Expand Down

0 comments on commit 6e8d5ae

Please sign in to comment.