diff options
author | Avamander <avamander@gmail.com> | 2021-11-28 15:33:06 +0200 |
---|---|---|
committer | Avamander <avamander@gmail.com> | 2021-12-04 22:03:40 +0200 |
commit | ffb17357e74fd80a0381361a5cbc6bc481d28000 (patch) | |
tree | 35ecac9774eb91200d73f2a7ff967ed1290ba709 /src/components/ble/weather/WeatherService.cpp | |
parent | ed6f0aade4db811b5013441c57944baff4528938 (diff) |
Fixed a few compilation errors, fixed UUID.
Diffstat (limited to 'src/components/ble/weather/WeatherService.cpp')
-rw-r--r-- | src/components/ble/weather/WeatherService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/weather/WeatherService.cpp b/src/components/ble/weather/WeatherService.cpp index 22c80837..bbaa21f0 100644 --- a/src/components/ble/weather/WeatherService.cpp +++ b/src/components/ble/weather/WeatherService.cpp @@ -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) { |