add MMPP_lib (for the time being only motors motors)

This commit is contained in:
eddyem
2019-05-02 20:09:54 +03:00
parent feb6463d8f
commit 5acbf79320
15 changed files with 1685 additions and 2 deletions

View File

@@ -134,8 +134,7 @@ int main(int argc, char **argv){
signal(SIGTSTP, SIG_IGN); // ctrl+Z
setbuf(stdout, NULL);
G = parse_args(argc, argv);
char *self = strdup(argv[0]);
check4running(self, G->pidfile);
check4running(NULL, G->pidfile);
DBG("Try to open serial %s", G->comdev);
if(tty_tryopen(G->comdev, G->speed)){
ERR(_("Can't open %s with speed %d. Exit."), G->comdev, G->speed);