From b0de8594cd70eac7d23ecbd15e9ef1d3f71575f5 Mon Sep 17 00:00:00 2001 From: Jojo-1000 <33495614+Jojo-1000@users.noreply.github.com> Date: Wed, 24 Mar 2021 19:25:49 +0100 Subject: [PATCH] Add note that Bridge and Group in EntertainmentMode must stay alive. --- include/hueplusplus/EntertainmentMode.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hueplusplus/EntertainmentMode.h b/include/hueplusplus/EntertainmentMode.h index 586c2ca8..1420f639 100644 --- a/include/hueplusplus/EntertainmentMode.h +++ b/include/hueplusplus/EntertainmentMode.h @@ -40,6 +40,9 @@ class EntertainmentMode //! //! \param b Bridge reference //! \param g Group to control in entertainment mode reference + //! + //! \note References are held to both \c b and \c g. + //! They must stay valid until EntertainmentMode ist destroyed. EntertainmentMode(Bridge& b, Group& g); //! \brief Destroy the Entertainment Mode object