diff options
-rw-r--r-- | libk8055/k8055.h | 1 | ||||
-rw-r--r-- | libk8055/libk8055.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libk8055/k8055.h b/libk8055/k8055.h index 044349e..d1d4f9e 100644 --- a/libk8055/k8055.h +++ b/libk8055/k8055.h @@ -32,6 +32,7 @@ extern "C" { unsigned char data_out[PACKET_LEN+1]; }; + char* version( void ); long search_devices( void ); int open_device( struct k8055_dev* dev, long board_address ); int close_device( struct k8055_dev* dev ); diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index 37f05d8..ba03cf9 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -172,6 +172,10 @@ static int takeover_device( usb_dev_handle* udev, int interface ) { return 0; } +char* version( void ) { + return( VERSION ); +} + int open_device( struct k8055_dev* dev, long board_address ) { usb_init(); usb_find_busses(); |