Skip to content

Commit afbd9e2

Browse files
authored
Filter BLE updates that don't change pairing status (#9333)
1 parent 64116cd commit afbd9e2

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)