8000 extmod/modbluetooth: Fix mp_bt_characteristic_on_write value_handle type · andrewleech/micropython@a599be7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a599be7

Browse files
committed
extmod/modbluetooth: Fix mp_bt_characteristic_on_write value_handle type
1 parent 32746e7 commit a599be7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extmod/modbluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(bluetooth_write_callback_obj, bluetooth_write_c
297297

298298
// Call the registered callback for this characteristic, if one has been
299299
// registered.
300-
void mp_bt_characteristic_on_write(uint16_t conn_handle, uint16_t value_handle, const void *value, size_t value_len) {
300+
void mp_bt_characteristic_on_write(uint16_t conn_handle, mp_bt_characteristic_handle_t value_handle, const void *value, size_t value_len) {
301301
// Iterate through the linked list to find to find the characteristic
302302
// with the given handle.
303303
mp_bt_characteristic_callback_t *item = MP_STATE_PORT(bt_characteristic_callbacks);

extmod/modbluetooth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int mp_bt_characteristic_value_notify(mp_bt_characteristic_t *characteristic, ui
101101
int mp_bt_characteristic_value_get(mp_bt_characteristic_t *characteristic, void *value, size_t *value_len);
102102

103103
// Call this when a characteristic is written to.
104-
void mp_bt_characteristic_on_write(uint16_t conn_handle, uint16_t value_handle, const void *value, size_t value_len);
104+
void mp_bt_characteristic_on_write(uint16_t conn_handle, mp_bt_characteristic_handle_t value_handle, const void *value, size_t value_len);
105105

106106
// Disconnect a connected central.
107107
int mp_bt_device_disconnect(uint16_t conn_handle);

0 commit comments

Comments
 (0)
0