From 8120b11258d8233921bc13f48b8542be2c544816 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 25 Sep 2018 14:08:03 -0700 Subject: [PATCH] Revert "Shearwater: try to gracefully shut down the Bluetooth connection" This reverts commit 437cc3e0cc9f88eedf27657c485cd55f23a4f2df. Jef convinced me that this is fundamentally the wrong thing to try here. Signed-off-by: Dirk Hohndel --- src/shearwater_petrel.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/shearwater_petrel.c b/src/shearwater_petrel.c index d45fa7b..1ea4f7d 100644 --- a/src/shearwater_petrel.c +++ b/src/shearwater_petrel.c @@ -384,11 +384,6 @@ shearwater_petrel_device_foreach (dc_device_t *abstract, dc_dive_callback_t call offset += RECORD_SIZE; } - // send the "graceful exit" instruction - // I don't think we care about the return value of this call - this is just trying to be nice to the device - unsigned char command[4] = { 0x2e, 0x90, 0x20, 0x00 }; - rc = shearwater_common_command(&device->base, command, 4); - DEBUG(abstract->context, "Sent graceful exit command, rc=%d", rc); // Update and emit a progress event. progress.current = NSTEPS * current;