Skip to content

Commit

Permalink
Show error message in case of BLE connection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Mar 17, 2023
1 parent 2b7f40c commit dc6923d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/Tizen/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ void BLEManagerImpl::GattConnectionStateChangedCb(int result, bool connected, co
sInstance.HandleConnectionEvent(connected, remoteAddress);
break;
default:
ChipLogError(DeviceLayer, "%s", connected ? "Connection req failed" : "Disconnection req failed");
ChipLogError(DeviceLayer, "%s: %s", connected ? "Connection req failed" : "Disconnection req failed",
get_error_message(result));
if (connected)
sInstance.NotifyHandleConnectFailed(CHIP_ERROR_INTERNAL);
}
Expand Down

0 comments on commit dc6923d

Please sign in to comment.