Skip to content

Commit

Permalink
fix error carserver error message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Aug 17, 2024
1 parent 0f4128b commit 8893d92
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/tesla_ble_vehicle/tesla_ble_vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,14 @@ namespace esphome
break;
}
}
ESP_LOGE(TAG, "[%s] Received CarServer ERROR message, retrying command..",
current_command.execute_name.c_str());
if (current_command.state == BLECommandState::WAITING_FOR_RESPONSE)
else
{
current_command.state = BLECommandState::READY;
ESP_LOGE(TAG, "[%s] Received CarServer ERROR message, retrying command..",
current_command.execute_name.c_str());
if (current_command.state == BLECommandState::WAITING_FOR_RESPONSE)
{
current_command.state = BLECommandState::READY;
}
}
break;
}
Expand Down

0 comments on commit 8893d92

Please sign in to comment.