Browse Source

Checked commit before PR. Added html gulp static files generated.

Eric Chauvet 4 years ago
parent
commit
42f981871d
3 changed files with 2472 additions and 2 deletions
  1. +2
    -2
      code/espurna/curtain_kingart.cpp
  2. BIN
      code/espurna/data/index.curtain.html.gz
  3. +2470
    -0
      code/espurna/static/index.curtain.html.gz.h

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

@ -250,8 +250,8 @@ void _KACurtainResult() {
if(buffer.indexOf("AT+RESULT") == 0) { //AT+RESULT is an acquitment of our command (MQTT or GUI) if(buffer.indexOf("AT+RESULT") == 0) { //AT+RESULT is an acquitment of our command (MQTT or GUI)
//Set the status on what we kown //Set the status on what we kown
if( _curtain_last_button == CURTAIN_BUTTON_OPEN && _curtain_last_position == 0 ||
_curtain_last_button == CURTAIN_BUTTON_CLOSE && _curtain_last_position == 100 ||
if( ( _curtain_last_button == CURTAIN_BUTTON_OPEN && _curtain_last_position == 0 ) ||
( _curtain_last_button == CURTAIN_BUTTON_CLOSE && _curtain_last_position == 100 ) ||
_curtain_last_button == CURTAIN_BUTTON_PAUSE) //The curtain is max opened, closed or pause _curtain_last_button == CURTAIN_BUTTON_PAUSE) //The curtain is max opened, closed or pause
_KAStopMoving(); _KAStopMoving();
else { //Else it is probably moving else { //Else it is probably moving


BIN
code/espurna/data/index.curtain.html.gz View File


+ 2470
- 0
code/espurna/static/index.curtain.html.gz.h
File diff suppressed because it is too large
View File


Loading…
Cancel
Save