Correct error in creation of NimBLEAddress from six bytes in a std::string

* Add creation of a NimBLEAddress from a std::string of 6 exactly bytes.

* Add creation of a NimBLEAddress from an empty string.
This commit is contained in:
h2zero committed 2020-05-18 10:11:54 -06:00
1 parent 08fc2878e7
commit 32e1022e67
4 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ private:
bool m_haveTXPower;
NimBLEAddress m_address = NimBLEAddress("\0\0\0\0\0\0");
NimBLEAddress m_address = NimBLEAddress("");
uint8_t m_advType;
uint16_t m_appearance;
int m_deviceType;