Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: source/nRF5xCharacteristicDescriptorDiscoverer.h
- Revision:
- 544:9e3d053ad4ec
- Parent:
- 543:53215259c0d2
diff -r 53215259c0d2 -r 9e3d053ad4ec source/nRF5xCharacteristicDescriptorDiscoverer.h
--- a/source/nRF5xCharacteristicDescriptorDiscoverer.h Mon Jan 11 10:19:03 2016 +0000
+++ b/source/nRF5xCharacteristicDescriptorDiscoverer.h Mon Jan 11 10:19:04 2016 +0000
@@ -116,7 +116,11 @@
friend bool operator==(const Discovery& lhs, const Discovery& rhs) {
return lhs.characteristic == rhs.characteristic &&
lhs.onDiscovery == rhs.onDiscovery &&
- lhs.onTerminate == lhs.onTerminate;
+ lhs.onTerminate == rhs.onTerminate;
+ }
+
+ friend bool operator!=(const Discovery& lhs, const Discovery& rhs) {
+ return !(lhs == rhs);
}
};
