diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 03628610b37e18..773e5481591707 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -980,7 +980,7 @@ - (BOOL)_deviceUsesThread // Bit 2 Ethernet uint32_t networkCommissioningClusterFeatureMapValue = static_cast(networkCommissioningClusterFeatureMapValueNumber.unsignedLongValue); - return (networkCommissioningClusterFeatureMapValue & (1 << 1)); + return (networkCommissioningClusterFeatureMapValue & (1 << 1)) ? YES : NO; } - (void)_clearSubscriptionPoolWork