Fixed an incorrect decode in Humidity
This commit is contained in:
parent
cccec6e1ab
commit
75cf5324ba
|
@ -312,7 +312,7 @@ namespace Pinetime {
|
||||||
humidity->expires = tmpExpires;
|
humidity->expires = tmpExpires;
|
||||||
|
|
||||||
int64_t tmpType = 0;
|
int64_t tmpType = 0;
|
||||||
QCBORDecode_GetInt64InMapSZ(&decodeContext, "DewPoint", &tmpType);
|
QCBORDecode_GetInt64InMapSZ(&decodeContext, "Humidity", &tmpType);
|
||||||
if (tmpType < 0 || tmpType >= 255) {
|
if (tmpType < 0 || tmpType >= 255) {
|
||||||
return BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN;
|
return BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue