Skip to content

Commit

Permalink
applications: Fixed pincode command for the Matter bridge
Browse files Browse the repository at this point in the history
Fixed the string to int conversion for the Matter bridge
pincode command. Before it was not able to correctly convert
pincodes with leading 0 characters.

Signed-off-by: Kamil Kasperczyk <[email protected]>
  • Loading branch information
kkasperczyk-no authored and rlubos committed Jan 17, 2024
1 parent afa47cd commit 5e921f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/matter_bridge/src/bridge_shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static void BluetoothScanResult(Nrf::BLEConnectivityManager::ScannedDevice *devi
static int InsertBridgedDevicePincodeHandler(const struct shell *shell, size_t argc, char **argv)
{
int bleDeviceIndex = strtoul(argv[0], NULL, 0);
unsigned int pincode = strtoul(argv[1], NULL, 0);
unsigned int pincode = strtoul(argv[1], NULL, 10);

bt_addr_le_t address;
if (Nrf::BLEConnectivityManager::Instance().GetScannedDeviceAddress(&address, bleDeviceIndex) !=
Expand Down

0 comments on commit 5e921f3

Please sign in to comment.