This commit is contained in:
Chris Boudacoff 2018-05-04 08:19:13 +03:00 committed by GitHub
parent 0bfa83ff9e
commit 0747587c0a
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

@ -1,9 +1,10 @@
all:
$(CC) teres1-debug.c -o teres1-debug
$(CC) teres1-ledctrl.c -o teres1-ledctrl
clean:
$(RM) teres1-debug
$(RM) teres1-ledctrl
install: all
install -m0755 teres1-debug /usr/local/sbin
install -m0755 debug_switch.sh /usr/local/sbin
install -m0755 teres1-ledctrl /usr/bin

@ -79,7 +79,7 @@ if (uid!=0 || uid!=euid || !argv[1]) {
else { usage(); exit(0); }
export_gpio(DEBUGEN);
set_gpio(DEBUGEN, mode);
printf("Debuging via serial cable is %s\r\n",argv[1]);
printf("Debuging via serial cable on headphone port is %s\r\n",argv[1]);
return 0;
}
}