Cleanup
This commit is contained in:
parent
ca26b6dfe8
commit
57da3861ac
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue