From 3e344a4cc1497ed87fd083a2a17361d815d32e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 1 Mar 2011 07:17:45 +0100 Subject: code move --- libk8055/libk8055.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index e48a29f..00528ca 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -92,7 +92,6 @@ #define K8055_IPID 0x5500 #define VELLEMAN_VENDOR_ID 0x10cf -#define K8055_MAX_DEV 4 #define USB_OUT_EP 0x01 /* USB output endpoint */ #define USB_INP_EP 0x81 /* USB Input endpoint */ @@ -117,9 +116,6 @@ /* set debug to 0 to not print excess info */ static int debug = 0; -static struct k8055_dev k8055d[K8055_MAX_DEV]; -static struct k8055_dev* curr_dev; - /* Actual read of data from the device endpoint, retry READ_RETRY times if not responding ok */ static int k8055_read( struct k8055_dev* dev ) { if( dev->dev_no==0 ) return K8055_ERROR; @@ -434,6 +430,11 @@ int set_counter_debounce_time( struct k8055_dev* dev, long counter, long debounc } /** Velleman API ***************************************************************************************************************************/ + +#define K8055_MAX_DEV 4 +static struct k8055_dev k8055d[K8055_MAX_DEV]; +static struct k8055_dev* curr_dev; + char* Version( void ) { return( VERSION ); } -- cgit v1.1-2-g2b99