Skip to content

Commit 53091c5

Browse files
ludvigsjcarlescufi
authored andcommitted
Bluetooth: Mesh: Fix confusing DFU slot doc
The word "valid" is already in use to mean slots that return true for `bt_mesh_dfu_slot_is_valid`, whereas `bt_mesh_dfu_slot_foreach` iterates over all added slots. Signed-off-by: Ludvig Samuelsen Jordet <[email protected]>
1 parent 063c039 commit 53091c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/bluetooth/mesh/dfu_slot.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ int bt_mesh_dfu_slot_get(const uint8_t *fwid, size_t fwid_len,
102102
*/
103103
int bt_mesh_dfu_slot_idx_get(const struct bt_mesh_dfu_slot *slot);
104104

105-
/** @brief Iterate through all valid DFU image slots.
105+
/** @brief Iterate through all DFU image slots.
106106
*
107-
* Calls the callback for every valid DFU image slot or until the callback returns
107+
* Calls the callback for every DFU image slot or until the callback returns
108108
* something other than @ref BT_MESH_DFU_ITER_CONTINUE.
109109
*
110110
* @param cb Callback to call for each slot, or NULL to just count the
111-
* number of valid slots.
111+
* number of slots.
112112
* @param user_data User data to pass to the callback.
113113
*
114114
* @return The number of slots iterated over.

0 commit comments

Comments
 (0)