From d1f7d1f7d51e8a83c54a9a5ec60433a365b9616c Mon Sep 17 00:00:00 2001 From: Eric Chauvet Date: Thu, 14 May 2020 17:38:54 +0200 Subject: [PATCH] Update code/espurna/curtain_kingart.cpp Co-authored-by: Max Prokhorov --- code/espurna/curtain_kingart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/curtain_kingart.cpp b/code/espurna/curtain_kingart.cpp index 1d6682c4..f766b0c7 100644 --- a/code/espurna/curtain_kingart.cpp +++ b/code/espurna/curtain_kingart.cpp @@ -158,7 +158,7 @@ void _KAStopMoving() { else if( _curtain_last_position != CURTAIN_POSITION_UNKNOWN) _curtain_position_set = _curtain_last_position; - if(_curtain_initial_position_set == false) {//The curtain stopped moving for the first time, set the position back to + if (!_curtain_initial_position_set) { //The curtain stopped moving for the first time, set the position back to int init_position = getSetting("curtainInitialBehaviour", 0); DEBUG_MSG_P(PSTR("[CURTAIN] curtainInitialBehaviour : %d, curtainInitialPosition : %d\n"), init_position, getSetting("curtainInitialPosition", 100)); if (init_position == 1)