We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af94e2 commit 04ad77dCopy full SHA for 04ad77d
src/internal/Switches.h
@@ -63,7 +63,7 @@ namespace DcsBios {
63
};
64
typedef Switch2PosT<> Switch2Pos;
65
66
- template <unsigned long pollIntervalMs = POLL_EVERY_TIME>
+ template <unsigned long pollIntervalMs = POLL_EVERY_TIME, unsigned long coverDelayMs = 200>
67
class SwitchWithCover2PosT : PollingInput, public ResettableInput
68
{
69
private:
@@ -107,7 +107,7 @@ namespace DcsBios {
107
(millis() - lastDebounceTime) > debounceDelay_)
108
109
// Switch has debounced and changed state
110
- if( millis() - lastSwitchStateTime > 200 )
+ if( millis() - lastSwitchStateTime > coverDelayMs )
111
112
// Switch/cover delay has been satisfied.
113
if( state )
0 commit comments