Skip to content

Commit

Permalink
Correct LEDOutput API, mask was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom committed Mar 12, 2024
1 parent 6bcc136 commit 845d51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DCS-BIOS/misc/DCSBIOSArduinoInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private static string LEDOutput(DCSBIOSControl dcsbiosControl, DCSBIOSControlOut
if (addBanner) str += CommonOutputData(dcsbiosControl, output);
//code.append($("<span>").text('DcsBios::LED '+idCamelCase(cid)+'('+io.address_identifier+', '));
str += UsingDirectValues;
str += $"DcsBios::LED {functionName}({Common.GetHex(output.Address)}, PIN);\n";
str += $"DcsBios::LED {functionName}({Common.GetHex(output.Address)},{Common.GetHex(output.Mask)}, PIN);\n";
str += UsingMacro;
str += $"DcsBios::LED {functionName}({output.AddressMaskIdentifier}, PIN);";

Expand Down Expand Up @@ -358,7 +358,7 @@ private static string FloatOutput(DCSBIOSControl dcsbiosControl, DCSBIOSControlO
str += UsingDirectValues;
str += $"DcsBios::FloatBuffer {functionName}({Common.GetHex(output.Address)}, 0, {output.MaxLength});\n";
str += UsingMacro;
str += $"DcsBios::FloatBuffer {functionName}({output.AddressMaskShiftIdentifier}, 0, {output.MaxLength});";
str += $"DcsBios::FloatBuffer {functionName}({output.AddressIdentifier}, 0, {output.MaxLength});";

return str;
}
Expand Down

0 comments on commit 845d51a

Please sign in to comment.