Skip to content

Commit a6f9e38

Browse files
authored
Merge pull request #2 from lmirel/dev
v0.8.1rc1
2 parents c7aa0b6 + 124ef99 commit a6f9e38

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

lib/extras.h

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ modification history
1010
adapted for motion feedback controller
1111
*/
1212

13+
#define MFC_VERSION "0.8.1"
14+
1315
/*
1416
int pkt_type;
1517
int pkt_dof_type;

mfcserver/mfc-main-svr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ int env_init (int argc, char **argv)
228228
*
229229
*/
230230
printf ("\n# ##");
231-
printf ("\n#MFC server");
231+
printf ("\n#MFC server %s", MFC_VERSION);
232232
printf ("\n#running configuration:");
233233
printf ("\n# motion response %dms (-l%d) range [0..100]", _oml, _oml);
234234
printf ("\n# motion speed %d (-s%d) range [1..7]", _omspeed, _omspeed);

mfcxtract/mfc-xtract.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int main (int argc, char **argv, char **envp)
192192
//configuration summary
193193
lport = 64402;
194194
printf ("\n# ##");
195-
printf ("\n#MFC extractor client");
195+
printf ("\n#MFC extractor client %s", MFC_VERSION);
196196
printf ("\n#running configuration:");
197197
//printf ("\n# roll range %d [1..10]", _rollspd);
198198
//printf ("\n# accel. speed %d (-a%d) range [1..10]", _accspd, _accspd);

usbxtract/sw/Makedefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3
22
LDLIBS += -lusb-1.0 -ludev
3-
CPPFLAGS+=-I../include -Iinclude -Ilib/gasync/include
3+
CPPFLAGS+=-I../include -I../../lib -Iinclude -Ilib/gasync/include

usbxtract/sw/adapter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void adapter_init(void) {
186186
char adapter_debug (char dbg)
187187
{
188188
char ret = adapterDbg;
189-
if (dbg > 0)
189+
if (dbg != 0xff)
190190
adapterDbg = dbg;
191191
return ret;
192192
}

usbxtract/sw/usbxtract.c

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include <getopt.h>
1717
#include <adapter.h>
1818

19+
#include <extras.h>
20+
1921
static char * port = NULL;
2022
static char * udev = NULL;
2123
int vid = 0, pid = 0;
@@ -101,6 +103,8 @@ static void terminate (int sig)
101103

102104
int main (int argc, char * argv[])
103105
{
106+
printf ("\n# ##");
107+
printf ("\n#USB extractor %s\n", MFC_VERSION);
104108

105109
(void) signal (SIGINT, terminate);
106110
(void) signal (SIGTERM, terminate);

0 commit comments

Comments
 (0)