From a2f4f1cd3f3992b9e16e578d907be2ef22fd442a Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sat, 3 Dec 2011 21:46:05 +0100 Subject: [PATCH] Replace the fixed delay with the new half-duplex emulation code. --- src/suunto_vyper2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/suunto_vyper2.c b/src/suunto_vyper2.c index 32347dd..7826270 100644 --- a/src/suunto_vyper2.c +++ b/src/suunto_vyper2.c @@ -131,6 +131,9 @@ suunto_vyper2_device_open (device_t **out, const char* name) // Make sure everything is in a sane state. serial_flush (device->port, SERIAL_QUEUE_BOTH); + // Enable half-duplex emulation. + serial_set_halfduplex (device->port, 1); + // Override the base class values. device->base.layout = &suunto_vyper2_layout; @@ -181,8 +184,6 @@ suunto_vyper2_device_packet (device_t *abstract, const unsigned char command[], return EXITCODE (n); } - serial_sleep (0x9); - // Clear RTS to receive the reply. serial_set_rts (device->port, 0);