Fixed an incorrect decode in Humidity

This commit is contained in:
Avamander 2021-12-01 18:41:01 +02:00
parent cccec6e1ab
commit 75cf5324ba

View File

@ -312,7 +312,7 @@ namespace Pinetime {
humidity->expires = tmpExpires;
int64_t tmpType = 0;
QCBORDecode_GetInt64InMapSZ(&decodeContext, "DewPoint", &tmpType);
QCBORDecode_GetInt64InMapSZ(&decodeContext, "Humidity", &tmpType);
if (tmpType < 0 || tmpType >= 255) {
return BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN;
}