diff --git a/components/ratgdo/secplus1.cpp b/components/ratgdo/secplus1.cpp index 115f985..44be1cf 100644 --- a/components/ratgdo/secplus1.cpp +++ b/components/ratgdo/secplus1.cpp @@ -136,15 +136,6 @@ namespace secplus1 { void Secplus1::query_action(QueryAction action) { - bool sync = false; - ESP_LOG2(TAG, "Query action: %s", QueryAction_to_string(action)); - if (action == QueryAction::STATUS) { - if (!sync) { - this->transmit_packet_delayed(secplus1_states, 19, 250); - // // sync = true; - // this->sw_serial_.write(secplus1_states, 19); - } - } } @@ -269,7 +260,7 @@ namespace secplus1 { this->ratgdo_->received(lock_state); } } - else if (cmd.type == CommandType::WALL_PANEL_SYNC) { + else if (cmd.type == CommandType::WALL_PANEL_STARTING) { if (cmd.value == 0x31) { this->wall_panel_starting_ = true; } diff --git a/components/ratgdo/secplus1.h b/components/ratgdo/secplus1.h index 77c8bc5..80513e3 100644 --- a/components/ratgdo/secplus1.h +++ b/components/ratgdo/secplus1.h @@ -29,7 +29,7 @@ namespace secplus1 { static const uint8_t secplus1_states[] = {0x35,0x35,0x35,0x35,0x33,0x33,0x53,0x53,0x38,0x3A,0x3A,0x3A,0x39,0x38,0x3A, 0x38,0x3A,0x39,0x3A}; ENUM(CommandType, uint16_t, - (WALL_PANEL_SYNC, 0x31), + (WALL_PANEL_STARTING, 0x31), (DOOR_STATUS, 0x38), (OBSTRUCTION, 0x39), // (OTHER_STATUS, 0x3A),