From 7f158ff8f68e98a81fe2e172b954186dd2c03189 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 16 Nov 2007 11:28:48 +0000 Subject: [PATCH] Use the SUUNTO_VYPER_PACKET_SIZE macro. --- suunto_vyper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suunto_vyper.c b/suunto_vyper.c index f287b6a..18aa7a3 100644 --- a/suunto_vyper.c +++ b/suunto_vyper.c @@ -342,7 +342,7 @@ static int suunto_vyper_write_memory_package (vyper *device, int address, const unsigned char data[], unsigned int size) { // Prepare the command. - unsigned char command[37] = {0x06, + unsigned char command[SUUNTO_VYPER_PACKET_SIZE + 5] = {0x06, (address >> 8) & 0xFF, // high (address ) & 0xFF, // low size, // count