Skip to content

Commit

Permalink
Merge pull request #2 from lmirel/dev
Browse files Browse the repository at this point in the history
v0.8.1rc1
  • Loading branch information
lmirel authored Apr 23, 2019
2 parents c7aa0b6 + 124ef99 commit a6f9e38
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/extras.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ modification history
adapted for motion feedback controller
*/

#define MFC_VERSION "0.8.1"

/*
int pkt_type;
int pkt_dof_type;
Expand Down
2 changes: 1 addition & 1 deletion mfcserver/mfc-main-svr.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ int env_init (int argc, char **argv)
*
*/
printf ("\n# ##");
printf ("\n#MFC server");
printf ("\n#MFC server %s", MFC_VERSION);
printf ("\n#running configuration:");
printf ("\n# motion response %dms (-l%d) range [0..100]", _oml, _oml);
printf ("\n# motion speed %d (-s%d) range [1..7]", _omspeed, _omspeed);
Expand Down
2 changes: 1 addition & 1 deletion mfcxtract/mfc-xtract.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int main (int argc, char **argv, char **envp)
//configuration summary
lport = 64402;
printf ("\n# ##");
printf ("\n#MFC extractor client");
printf ("\n#MFC extractor client %s", MFC_VERSION);
printf ("\n#running configuration:");
//printf ("\n# roll range %d [1..10]", _rollspd);
//printf ("\n# accel. speed %d (-a%d) range [1..10]", _accspd, _accspd);
Expand Down
2 changes: 1 addition & 1 deletion usbxtract/sw/Makedefs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3
LDLIBS += -lusb-1.0 -ludev
CPPFLAGS+=-I../include -Iinclude -Ilib/gasync/include
CPPFLAGS+=-I../include -I../../lib -Iinclude -Ilib/gasync/include
2 changes: 1 addition & 1 deletion usbxtract/sw/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void adapter_init(void) {
char adapter_debug (char dbg)
{
char ret = adapterDbg;
if (dbg > 0)
if (dbg != 0xff)
adapterDbg = dbg;
return ret;
}
Expand Down
4 changes: 4 additions & 0 deletions usbxtract/sw/usbxtract.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <getopt.h>
#include <adapter.h>

#include <extras.h>

static char * port = NULL;
static char * udev = NULL;
int vid = 0, pid = 0;
Expand Down Expand Up @@ -101,6 +103,8 @@ static void terminate (int sig)

int main (int argc, char * argv[])
{
printf ("\n# ##");
printf ("\n#USB extractor %s\n", MFC_VERSION);

(void) signal (SIGINT, terminate);
(void) signal (SIGTERM, terminate);
Expand Down

0 comments on commit a6f9e38

Please sign in to comment.