Skip to content

Commit e6eb5d0

Browse files
jp-bennettKitsune (Rebase Bot)
authored andcommitted
Filter BLE updates that don't change pairing status (meshtastic#9333)
1 parent 7684052 commit e6eb5d0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/modules/StatusLEDModule.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ int StatusLEDModule::handleStatusUpdate(const meshtastic::Status *arg)
5050
break;
5151
}
5252
case meshtastic::BluetoothStatus::ConnectionState::CONNECTED: {
53-
ble_state = connected;
54-
PAIRING_LED_starttime = millis();
55-
break;
53+
if (ble_state != connected) {
54+
ble_state = connected;
55+
PAIRING_LED_starttime = millis();
56+
}
5657
}
5758
}
5859

0 commit comments

Comments
 (0)