Add option to disable LOCKOUT on UMP
This commit is contained in:
parent
b59dceb911
commit
d7fe8f1d47
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,9 @@
|
||||||
|
|
||||||
#define PIN_LOCKOUT 7
|
#define PIN_LOCKOUT 7
|
||||||
|
|
||||||
|
// Use the LOCKOUT function on the UMP
|
||||||
|
// #define USE_LOCKOUT
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
@ -125,7 +128,9 @@ void loop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(USE_LOCKOUT)
|
||||||
bool lockout = digitalRead(PIN_LOCKOUT) == HIGH;
|
bool lockout = digitalRead(PIN_LOCKOUT) == HIGH;
|
||||||
|
#endif
|
||||||
if (lockout != m_lockout) {
|
if (lockout != m_lockout) {
|
||||||
uint8_t data[4U];
|
uint8_t data[4U];
|
||||||
data[0U] = UMP_FRAME_START;
|
data[0U] = UMP_FRAME_START;
|
||||||
|
|
Loading…
Reference in a new issue