hardware bug found, sorry

This commit is contained in:
phyto
2019-05-15 17:22:44 +02:00
parent 7a3ba3b44c
commit 946616e55a
4 changed files with 22 additions and 6 deletions

View File

@@ -125,6 +125,7 @@ int main(int argc, char *argv[])
int opt;
int serial_in;
char *device = "/dev/ttyACM0";
char ligne[100];
while ((opt = getopt(argc, argv, "d:hv")) != -1) {
switch (opt) {
@@ -150,7 +151,8 @@ sleep(1);
initscr();
nonl(); cbreak(); noecho();
keypad(stdscr, TRUE); /* acces aux touches 'curseur' */
fond_ecran(" Demonstrator ");
sprintf(ligne, " Demonstrator %d %s ", getpid(), device);
fond_ecran(ligne);
traite_les_messages(serial_in, 50000000);