Browse Source

Update code/espurna/curtain_kingart.cpp

Co-authored-by: Max Prokhorov <prokhorov.max@outlook.com>
Eric Chauvet 4 years ago
committed by GitHub
parent
commit
d1f7d1f7d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/curtain_kingart.cpp

+ 1
- 1
code/espurna/curtain_kingart.cpp View File

@ -158,7 +158,7 @@ void _KAStopMoving() {
else if( _curtain_last_position != CURTAIN_POSITION_UNKNOWN) else if( _curtain_last_position != CURTAIN_POSITION_UNKNOWN)
_curtain_position_set = _curtain_last_position; _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); int init_position = getSetting("curtainInitialBehaviour", 0);
DEBUG_MSG_P(PSTR("[CURTAIN] curtainInitialBehaviour : %d, curtainInitialPosition : %d\n"), init_position, getSetting("curtainInitialPosition", 100)); DEBUG_MSG_P(PSTR("[CURTAIN] curtainInitialBehaviour : %d, curtainInitialPosition : %d\n"), init_position, getSetting("curtainInitialPosition", 100));
if (init_position == 1) if (init_position == 1)


Loading…
Cancel
Save