Skip to content

Commit 5a083ee

Browse files
akredalenrlubos
authored andcommitted
Bluetooth: mesh: Fix scene recall for Light Ctrl server
The Light Lightness Control Server now resumes the Lightness Controller automatically after a scene recall, fixing the known issue NCSDK-30033. Signed-off-by: Stine Akredalen <[email protected]>
1 parent 5241ce0 commit 5a083ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ Binary libraries
439439
Bluetooth libraries and services
440440
--------------------------------
441441

442-
|no_changes_yet_note|
442+
* :ref:`bt_mesh` library:
443+
444+
* Fixed an issue in the :ref:`bt_mesh_light_ctrl_srv_readme` model to automatically resume the Lightness Controller after recalling a scene (``NCSDK-30033`` known issue).
443445

444446
Common Application Framework
445447
----------------------------

subsys/bluetooth/mesh/light_ctrl_srv.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,8 +1541,10 @@ static void scene_recall(const struct bt_mesh_model *model, const uint8_t data[]
15411541
.transition = transition,
15421542
};
15431543

1544+
bool restart = is_enabled(srv);
1545+
15441546
ctrl_disable(srv);
1545-
if (atomic_test_bit(&srv->flags, FLAG_RESUME_TIMER)) {
1547+
if (restart || atomic_test_bit(&srv->flags, FLAG_RESUME_TIMER)) {
15461548
schedule_resume_timer(srv);
15471549
}
15481550
lightness_srv_change_lvl(srv->lightness, NULL, &set, &status, true);

0 commit comments

Comments
 (0)