Skip to content

Commit

Permalink
fix condition for setting ble name (#8114)
Browse files Browse the repository at this point in the history
The error should be returned if the feature is not supported and not when it is.
  • Loading branch information
eve-cxrp authored and pull[bot] committed Jul 14, 2021
1 parent 8ce397f commit 1149556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Zephyr/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ CHIP_ERROR BLEManagerImpl::_GetDeviceName(char * buf, size_t bufSize)

CHIP_ERROR BLEManagerImpl::_SetDeviceName(const char * deviceName)
{
if (mServiceMode != ConnectivityManager::kCHIPoBLEServiceMode_NotSupported)
if (mServiceMode == ConnectivityManager::kCHIPoBLEServiceMode_NotSupported)
{
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
}
Expand Down

0 comments on commit 1149556

Please sign in to comment.