From 1d235daf307f160ede20d2962e9a799954df00f4 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Tue, 18 Feb 2020 19:47:41 +0100 Subject: [PATCH] Skip the BLE handshake for the Pro Plus X The Oceanic Pro Plus X does not seem to understand the BLE handshake command. It just fails with a NAK byte (0xA5) as response. --- src/oceanic_atom2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oceanic_atom2.c b/src/oceanic_atom2.c index 0ed9a0d..342cb9e 100644 --- a/src/oceanic_atom2.c +++ b/src/oceanic_atom2.c @@ -920,7 +920,8 @@ oceanic_atom2_device_open (dc_device_t **out, dc_context_t *context, dc_iostream goto error_free; } - if (dc_iostream_get_transport (device->iostream) == DC_TRANSPORT_BLE) { + if (dc_iostream_get_transport (device->iostream) == DC_TRANSPORT_BLE && + model != PROPLUSX) { status = oceanic_atom2_ble_handshake(device); if (status != DC_STATUS_SUCCESS) { goto error_free;