Skip to content

Commit

Permalink
Update 2A4A1-RWR_CONTROL_PANEL.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
Arribe committed Mar 21, 2024
1 parent 74e33c0 commit 8f8d3a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ DcsBios::Switch2Pos rwrSpecialBtn("RWR_SPECIAL_BTN", SPECIAL);

const byte rwrDisTypeSwPins[5] = { DcsBios::PIN_NC, RWR_DIS_I, RWR_DIS_A, RWR_DIS_U, RWR_DIS_F };
/// @todo Replace with DCSBios version of DcsBios::SwitchMultiPos if/when fixed.
SwitchMultiPosDebounce rwrDisTypeSw("RWR_DIS_TYPE_SW", rwrDisTypeSwPins, 5);
SwitchMultiPosDebounce rwrDisTypeSw("RWR_DIS_TYPE_SW", rwrDisTypeSwPins, 5, false, 100);

/**
* Arduino Setup Function
Expand All @@ -141,4 +141,7 @@ void loop() {

//Run DCS Bios loop function
DcsBios::loop();

///@todo If/When DCS Skunkworks fixes the multiposition switch remove the rwrDisTypeSw.pollThisInput(); call.
rwrDisTypeSw.pollThisInput();
}

0 comments on commit 8f8d3a2

Please sign in to comment.