Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ports/espressif/common-hal/_bleio/PacketBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ static int packet_buffer_on_ble_client_evt(struct ble_gap_event *event, void *pa
return false;
}

#if CIRCUITPY_SERIAL_BLE || CIRCUITPY_BLE_FILE_SERVICE
// Exposed via shared-bindings header when enabled
void _common_hal_bleio_packet_buffer_construct(
#else
// Internal static helper when disabled (avoids "missing prototype" error)
static void _common_hal_bleio_packet_buffer_construct(
#endif
bleio_packet_buffer_obj_t *self, bleio_characteristic_obj_t *characteristic,
uint32_t *incoming_buffer, size_t incoming_buffer_size,
uint32_t *outgoing_buffer1, uint32_t *outgoing_buffer2, size_t max_packet_size,
Expand Down
2 changes: 1 addition & 1 deletion shared-bindings/_bleio/PacketBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void common_hal_bleio_packet_buffer_construct(
void _common_hal_bleio_packet_buffer_construct(
bleio_packet_buffer_obj_t *self, bleio_characteristic_obj_t *characteristic,
uint32_t *incoming_buffer, size_t incoming_buffer_size,
uint32_t *outgoing_buffer1, uint32_t *outgoing_buffer2, size_t outgoing_buffer_size,
uint32_t *outgoing_buffer1, uint32_t *outgoing_buffer2, size_t max_packet_size,
ble_event_handler_t *static_handler_entry);
#endif
mp_int_t common_hal_bleio_packet_buffer_write(bleio_packet_buffer_obj_t *self, const uint8_t *data, size_t len, uint8_t *header, size_t header_len);
Expand Down
Loading