Skip to content

Commit 8358cdd

Browse files
mlaschfabiobaltieri
authored andcommitted
net: lwm2m: Reduce dependency on firmware update pull Kconfig
There are functions whose headers are only visible when CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT is selected. However these functions are used outside the scope of the firmware update pull functionality. This change allows to disable CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT while still being able to use the firmware update object. Signed-off-by: Marc Lasch <[email protected]>
1 parent 0c26bdd commit 8358cdd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/zephyr/net/lwm2m.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ void lwm2m_firmware_set_cancel_cb_inst(uint16_t obj_inst_id, lwm2m_engine_user_c
551551
*/
552552
lwm2m_engine_user_cb_t lwm2m_firmware_get_cancel_cb_inst(uint16_t obj_inst_id);
553553

554-
#if defined(CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT) || defined(__DOXYGEN__)
555554
/**
556555
* @brief Set data callback to handle firmware update execute events.
557556
*
@@ -588,8 +587,6 @@ void lwm2m_firmware_set_update_cb_inst(uint16_t obj_inst_id, lwm2m_engine_execut
588587
*/
589588
lwm2m_engine_execute_cb_t lwm2m_firmware_get_update_cb_inst(uint16_t obj_inst_id);
590589
#endif
591-
#endif
592-
593590

594591
#if defined(CONFIG_LWM2M_SWMGMT_OBJ_SUPPORT) || defined(__DOXYGEN__)
595592

0 commit comments

Comments
 (0)