aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-11-22 23:23:38 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-11-22 23:23:38 +0100
commit0e2228fae626ec617a6a1f042ceb6dbdbd774558 (patch)
treeaf9ca3948b37538f474987ec7e0cda5d554e7e9d /include
parentb6c6fdf032ff76f31ae37e3f0f20895684f9e9f0 (diff)
downloadble-toys-0e2228fae626ec617a6a1f042ceb6dbdbd774558.tar.gz
ble-toys-0e2228fae626ec617a6a1f042ceb6dbdbd774558.tar.bz2
ble-toys-0e2228fae626ec617a6a1f042ceb6dbdbd774558.tar.xz
ble-toys-0e2228fae626ec617a6a1f042ceb6dbdbd774558.zip
o Compiling everything again.
Diffstat (limited to 'include')
-rw-r--r--include/ble/misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ble/misc.h b/include/ble/misc.h
index 70a19f5..563d039 100644
--- a/include/ble/misc.h
+++ b/include/ble/misc.h
@@ -133,6 +133,10 @@ public:
bool extendedProperties() {
return static_cast<bool>(value & 0x80);
}
+
+ explicit operator uint16_t() {
+ return value;
+ }
};
} // namespace bluetooth