Skip to content

Commit cdf8c83

Browse files
committed
GattClient: Improve test of the absence of iterator.
1 parent 0d6d566 commit cdf8c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BLE_GattClient/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class GattClientProcess : private mbed::NonCopyable<GattClientProcess> {
259259
*/
260260
void process_next_characteristic(void)
261261
{
262-
if (_it == 0) {
262+
if (!_it) {
263263
_it = _characteristics;
264264
} else {
265265
_it = _it->next;

0 commit comments

Comments
 (0)