diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-06-22 22:10:15 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-06-22 22:10:15 -0400 |
| commit | 140904ec84ad1900f280c1febaa89a499c42b8c5 (patch) | |
| tree | d6d686b2056dc99975f66399ad82428f75ee8dcb /shared-bindings/bleio/UUID.c | |
| parent | 4881e1ff55768c027404cc6a1375c43d4c3acf2a (diff) | |
getting Scanner to work
Diffstat (limited to 'shared-bindings/bleio/UUID.c')
| -rw-r--r-- | shared-bindings/bleio/UUID.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-bindings/bleio/UUID.c b/shared-bindings/bleio/UUID.c index 972505058..0db7435f4 100644 --- a/shared-bindings/bleio/UUID.c +++ b/shared-bindings/bleio/UUID.c @@ -220,6 +220,12 @@ STATIC mp_obj_t bleio_uuid_unary_op(mp_unary_op_t op, mp_obj_t self_in) { } } +//| + +//| .. method:: __eq__(other) +//| +//| Two UUID objects are equal if their values match and they are both 128-bit or both 16-bit. +//| STATIC mp_obj_t bleio_uuid_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) { switch (op) { // Two UUID's are equal if their uuid16 values and uuid128 references match. |
