From 54daa9b580e7033fbe4b834c8b06687872553e88 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 16 Nov 2009 08:17:09 +0000 Subject: [PATCH] Remove the debugging code. --- src/suunto_vyper.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/suunto_vyper.c b/src/suunto_vyper.c index db0ccfb..d7dd9b2 100644 --- a/src/suunto_vyper.c +++ b/src/suunto_vyper.c @@ -305,14 +305,6 @@ suunto_vyper_device_read (device_t *abstract, unsigned int address, unsigned cha memcpy (data, answer + 4, len); -#ifndef NDEBUG - message ("VyperRead(0x%04x,%d)=\"", address, len); - for (unsigned int i = 0; i < len; ++i) { - message("%02x", data[i]); - } - message("\"\n"); -#endif - nbytes += len; address += len; data += len; @@ -345,10 +337,6 @@ suunto_vyper_device_write (device_t *abstract, unsigned int address, const unsig if (rc != DEVICE_STATUS_SUCCESS) return rc; -#ifndef NDEBUG - message("VyperPrepareWrite();\n"); -#endif - // Write the package. unsigned char wanswer[5] = {0}; unsigned char wcommand[SUUNTO_VYPER_PACKET_SIZE + 5] = {0x06, @@ -362,14 +350,6 @@ suunto_vyper_device_write (device_t *abstract, unsigned int address, const unsig if (rc != DEVICE_STATUS_SUCCESS) return rc; -#ifndef NDEBUG - message ("VyperWrite(0x%04x,%d,\"", address, len); - for (unsigned int i = 0; i < len; ++i) { - message ("%02x", data[i]); - } - message ("\");\n"); -#endif - nbytes += len; address += len; data += len; @@ -494,14 +474,6 @@ suunto_vyper_read_dive (device_t *abstract, unsigned char data[], unsigned int s // the bytes again before returning them to the application. array_reverse_bytes (data, nbytes); -#ifndef NDEBUG - message ("Vyper%sProfile=\"", init ? "First" : ""); - for (unsigned int i = 0; i < nbytes; ++i) { - message("%02x", data[i]); - } - message("\"\n"); -#endif - if (result) *result = nbytes;