mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-03-02 03:13:52 +01:00
Merge pull request #208 from phl0/LOCKOUT_UMP
Make LOCKOUT function of UMP optional
This commit is contained in:
commit
38d0a15235
|
|
@ -29,6 +29,9 @@
|
|||
|
||||
#define PIN_LOCKOUT 7
|
||||
|
||||
// Use the LOCKOUT function on the UMP
|
||||
// #define USE_LOCKOUT
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
|
@ -125,7 +128,10 @@ void loop()
|
|||
}
|
||||
}
|
||||
|
||||
bool lockout = digitalRead(PIN_LOCKOUT) == HIGH;
|
||||
bool lockout = false;
|
||||
#if defined(USE_LOCKOUT)
|
||||
lockout = digitalRead(PIN_LOCKOUT) == HIGH;
|
||||
#endif
|
||||
if (lockout != m_lockout) {
|
||||
uint8_t data[4U];
|
||||
data[0U] = UMP_FRAME_START;
|
||||
|
|
|
|||
Loading…
Reference in a new issue