Skip to content

Commit

Permalink
Fix a crash in xScanner ... at least partially
Browse files Browse the repository at this point in the history
  • Loading branch information
keithsw1111 committed Nov 26, 2024
1 parent b24ca35 commit 24d1cb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xLights/controllers/FPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3119,7 +3119,11 @@ static void CreateController(Discovery &discovery, DiscoveredData *inst) {
} else if (inst->typeId >= 0x80 && inst->typeId <= 0x8F) {
//falcon range
if (created) {
inst->controller->SetProtocol(OUTPUT_E131);
if (inst->mode == "bridge") {
inst->controller->SetProtocol(OUTPUT_E131);
} else {
inst->controller->SetProtocol(OUTPUT_DDP);
}
inst->SetVendor("Falcon");
inst->SetModel(AfterLast(inst->platformModel, ' '));
inst->controller->SetAutoLayout(true);
Expand Down
1 change: 1 addition & 0 deletions xScanner/xscanner.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<SpectreMitigation>false</SpectreMitigation>
<DefineConstants>
</DefineConstants>
<EnableASAN>false</EnableASAN>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand Down

0 comments on commit 24d1cb9

Please sign in to comment.