This commit is contained in:
Marius Muja 2024-01-09 00:40:07 -08:00
parent ca26b6dfe8
commit 57da3861ac
2 changed files with 2 additions and 11 deletions

View File

@ -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;
}

View File

@ -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),