Fixed a few compilation errors, fixed UUID.

This commit is contained in:
Avamander
2021-11-28 15:33:06 +02:00
parent ed6f0aade4
commit ffb17357e7
5 changed files with 25 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ namespace Pinetime {
if (UsefulBuf_IsNULLOrEmptyC(String) != 0) {
return BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN;
}
airquality->polluter = std::make_unique<std::string>(static_cast<const char*>(String.ptr), String.len);
airquality->polluter = std::string(static_cast<const char*>(String.ptr), String.len);
int64_t tmpAmount = 0;
QCBORDecode_GetInt64InMapSZ(&decodeContext, "Amount", &tmpAmount);
if (tmpAmount < 0) {