projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89ec973
)
visomat-data-downloader: use a symbolic constant for the packet size
author
Antonio Ospite <ao2@ao2.it>
Thu, 14 Jan 2016 14:00:38 +0000
(15:00 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 14 Jan 2016 14:00:38 +0000
(15:00 +0100)
src/visomat-data-downloader.c
patch
|
blob
|
history
diff --git
a/src/visomat-data-downloader.c
b/src/visomat-data-downloader.c
index
574bb13
..
a5405a4
100644
(file)
--- a/
src/visomat-data-downloader.c
+++ b/
src/visomat-data-downloader.c
@@
-58,6
+58,7
@@
static void debug_dump_buffer(const char *filename, uint8_t *buffer, unsigned in
#define VISOMAT_INTERFACE 1
#define VISOMAT_EP_IN 0x82
#define VISOMAT_EP_OUT 0x03
+#define VISOMAT_PACKET_SIZE 64
#define STX 0x02
#define ETX 0x03
@@
-281,7
+282,7
@@
static int get_response(libusb_device_handle *dev,
{
int ret;
int transferred;
- uint8_t response[
64
] = { 0 };
+ uint8_t response[
VISOMAT_PACKET_SIZE
] = { 0 };
unsigned int i;
i = 0;