From 67a00462d49217fa12d6761942b8c8964e492b3b Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Thu, 18 Feb 2016 09:39:55 -0500 Subject: different serial ports on Olimex --- device-functions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/device-functions.c b/device-functions.c index 8bca0d7..98b51d5 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4409,7 +4409,11 @@ int IO_Setup_RS232(int baud, char hardhand) fprintf(configfile, "OPTS=-L %s\n", hardhand ? "-h" : ""); fprintf(configfile, "BAUD=%d\n", baud); fclose(configfile); - system("systemctl --no-block restart inst-getty@ttyO5.service"); + if (globals.HWDetect.olimex) { + system("systemctl --no-block restart inst-getty@ttyS5.service"); + } else if (globals.HWDetect.beaglebone) { + system("systemctl --no-block restart inst-getty@ttyO5.service"); + } } printf ("end writeable: rs232 change\n"); remount_root_as_writeable (FALSE); -- cgit