diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 22:09:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 22:09:59 +0100 |
commit | c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc (patch) | |
tree | 68230e76666b5ef2a01471fc9d6951a719856662 /ble/misc.cpp | |
parent | 52450ed3034b0ba058ea2c9f9baa2d5f78df6a94 (diff) | |
download | ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.gz ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.bz2 ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.xz ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.zip |
ByteBuffer:
o Reducing silliness, no allocations by ByteBuffer.
o Create StaticByteBuffer as a nice one-liner to create a buffer.
LinuxBluetooth: methods that want a buffer needs to pass it in, ByteBuffer is not allocating anymore.
Diffstat (limited to 'ble/misc.cpp')
-rw-r--r-- | ble/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ble/misc.cpp b/ble/misc.cpp index a8df2cb..a4f4b57 100644 --- a/ble/misc.cpp +++ b/ble/misc.cpp @@ -50,7 +50,7 @@ o<Uuid> Uuid::fromString(const std::string &str) { } auto tmp = str.substr(i, 2); - cout << "str=" << tmp << endl; + // cout << "str=" << tmp << endl; unsigned long x = std::stoul(tmp, nullptr, 16); if (x > std::numeric_limits<uint8_t>::max()) { |