Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: update from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 18, 2023
1 parent 2cae1f0 commit a1a106f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cloud/cloud_codec/lwm2m/lwm2m_codec_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,8 @@ int lwm2m_codec_helpers_set_modem_dynamic_data(struct cloud_data_modem_dynamic *
return err;
}

err = lwm2m_set_s8(&LWM2M_OBJ(LWM2M_OBJECT_CONNECTIVITY_MONITORING_ID, 0, RSS),
(int8_t)modem_dynamic->rsrp);
err = lwm2m_set_s16(&LWM2M_OBJ(LWM2M_OBJECT_CONNECTIVITY_MONITORING_ID, 0, RSS),
modem_dynamic->rsrp);
if (err) {
return err;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lwm2m_codec_helpers/src/lwm2m_codec_helpers_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ void test_codec_helpers_set_modem_dynamic_data(void)
__cmock_lwm2m_set_res_buf_ExpectAnyArgsAndReturn(0);
__cmock_lwm2m_set_res_buf_ExpectAnyArgsAndReturn(0);

__cmock_lwm2m_set_s8_ExpectAndReturn(
__cmock_lwm2m_set_s16_ExpectAndReturn(
&LWM2M_OBJ(LWM2M_OBJECT_CONNECTIVITY_MONITORING_ID, 0, RSS),
modem_dynamic.rsrp, 0);

Expand Down

0 comments on commit a1a106f

Please sign in to comment.