Skip to content

Commit

Permalink
fix: use local MAX_BLE_MESSAGE_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Aug 1, 2024
1 parent 0716592 commit 677015f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tesla_ble_vehicle/tesla_ble_vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ namespace esphome

// check we are not overflowing the buffer before appending data
size_t buffer_len_post_append = read_chunk_.buffer.size() + this->ble_read_buffer_.size();
if (buffer_len_post_append > tesla_ble_client_->MAX_BLE_MESSAGE_SIZE)
if (buffer_len_post_append > MAX_BLE_MESSAGE_SIZE)
{
ESP_LOGE(TAG, "BLE RX: Message length (%d) exceeds max BLE message size", buffer_len_post_append);
// clear buffer
Expand Down

0 comments on commit 677015f

Please sign in to comment.