Skip to content

Commit 98e75c7

Browse files
author
Donatien Garnier
authored
Merge pull request #275 from jamesbeyond/GattClientFix
fixed a bug in BLE_GattClient
2 parents 910b87f + e5b8106 commit 98e75c7

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)