rename heart variables and function

This commit is contained in:
2025-12-01 12:18:38 +01:00
parent 3ba29199c4
commit 6dd232fb83
4 changed files with 7 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ static int heart_rate_chr_access(uint16_t conn_handle, uint16_t attr_handle,
/* Verify attribute handle */
if (attr_handle == heart_rate_chr_val_handle) {
/* Update access buffer value */
heart_rate_chr_val[1] = get_heart_rate();
heart_rate_chr_val[1] = get_temp();
rc = os_mbuf_append(ctxt->om, &heart_rate_chr_val,
sizeof(heart_rate_chr_val));
return rc == 0 ? 0 : BLE_ATT_ERR_INSUFFICIENT_RES;