Skip to content

Commit e5b8106

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
fixed a bug in BLE_GattClient
1 parent 910b87f commit e5b8106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BLE_GattClient/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class GattClientProcess : private mbed::NonCopyable<GattClientProcess>,
486486
DiscoveredCharacteristicNode* new_node =
487487
new(std::nothrow) DiscoveredCharacteristicNode(*characteristic);
488488

489-
if (new_node == false) {
489+
if (new_node == NULL) {
490490
printf("Error while allocating a new characteristic.\r\n");
491491
return false;
492492
}

0 commit comments

Comments
 (0)