X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial_bt.c;h=678a0ce22c2c17568b26c2661bffe416efc2cc4b;hb=c0aa074eb2d13c5d81e2caff8d243ca5f3feb3c6;hp=8ed4523b8167ee1f42686d1ff9309f3b0f9c8c8f;hpb=e378e3a2d4d2b24464ab01d19000c8a39dfc29b8;p=libsigrok.git diff --git a/src/serial_bt.c b/src/serial_bt.c index 8ed4523b..678a0ce2 100644 --- a/src/serial_bt.c +++ b/src/serial_bt.c @@ -574,28 +574,6 @@ static int ser_bt_read(struct sr_serial_dev_inst *serial, return sr_ser_unqueue_rx_data(serial, buf, dlen); } -static int ser_bt_set_params(struct sr_serial_dev_inst *serial, - int baudrate, int bits, int parity, int stopbits, - int flowcontrol, int rts, int dtr) -{ - /* - * Bluetooth communication has no concept of bitrate, so ignore - * these arguments silently. Neither need we pass the frame format - * down to internal BT comm routines, nor need we keep the values - * here, since the caller will cache/register them already. - */ - (void)serial; - (void)baudrate; - (void)bits; - (void)parity; - (void)stopbits; - (void)flowcontrol; - (void)rts; - (void)dtr; - - return SR_OK; -} - struct bt_source_args_t { /* The application callback. */ sr_receive_data_callback cb; @@ -835,7 +813,13 @@ static struct ser_lib_functions serlib_bt = { .drain = ser_bt_drain, .write = ser_bt_write, .read = ser_bt_read, - .set_params = ser_bt_set_params, + /* + * Bluetooth communication has no concept of bitrate, so ignore + * these arguments silently. Neither need we pass the frame format + * down to internal BT comm routines, nor need we keep the values + * here, since the caller will cache/register them already. + */ + .set_params = std_dummy_set_params, .setup_source_add = ser_bt_setup_source_add, .setup_source_remove = ser_bt_setup_source_remove, .list = ser_bt_list,