From 42f5cf4c9d7f338a56c23be7878302996cc2b8a3 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 10 Aug 2022 12:53:00 +0100 Subject: [PATCH] d/opengloves: Use correct argument when casting --- .../communication/bluetooth/opengloves_bt_serial.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.c b/src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.c index 2c7a42553..d39fea059 100644 --- a/src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.c +++ b/src/xrt/drivers/opengloves/communication/bluetooth/opengloves_bt_serial.c @@ -43,7 +43,7 @@ opengloves_bt_read(struct opengloves_communication_device *ocdev, char *data, si static int opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t *data, size_t length) { - struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)obdev; + struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)ocdev; return write(obdev->sock, data, length); } @@ -51,14 +51,12 @@ opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t static void opengloves_bt_destroy(struct opengloves_communication_device *ocdev) { - struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)obdev; + struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)ocdev; opengloves_bt_close(obdev); free(obdev); } - - int opengloves_bt_open(const char *btaddr, struct opengloves_communication_device **out_comm_dev) {