Skip to content

Commit 8677f99

Browse files
committed
Prevent updateLEDs() during training
1 parent 3302146 commit 8677f99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Firmware/LoRaSerial/System.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ void updateLeds()
10991099
{
11001100
static uint8_t previousLedUse;
11011101

1102+
//If training button is being pressed, LEDs are being updated by that function
1103+
if (trainBtn != NULL && trainBtn->read()) return;
1104+
11021105
//When changing patterns, start with the LEDs off
11031106
if (previousLedUse != settings.selectLedUse)
11041107
{

0 commit comments

Comments
 (0)