diff --git a/epicardium/ble/ess.c b/epicardium/ble/ess.c index b5dab229f9c87a990feb81a13c5bce3973b9a34a..3d3ba3d096c11d8adbfbc5e42ae9aa4a70087bfc 100644 --- a/epicardium/ble/ess.c +++ b/epicardium/ble/ess.c @@ -169,8 +169,12 @@ static attsGroup_t svcESSGroup = { void bleESS_update(void) { - uint16_t i16 = 0; - AttsSetAttr(ESS_TEMPERATURE_VAL_HDL, sizeof(i16), (uint8_t *)&i16); + int16_t temperature = 0; + AttsSetAttr( + ESS_TEMPERATURE_VAL_HDL, + sizeof(temperature), + (uint8_t *)&temperature + ); uint16_t humidity = 0; AttsSetAttr( @@ -183,8 +187,8 @@ void bleESS_update(void) AttsHandleValueNtf( connId, ESS_TEMPERATURE_VAL_HDL, - sizeof(i16), - (uint8_t *)&i16 + sizeof(temperature), + (uint8_t *)&temperature ); } if (AttsCccEnabled(connId, BLE_ESS_HUMI_CCC_IDX)) {