Commit 858b1a67 authored by Martin Vítek's avatar Martin Vítek

By default choose first port

parent 156d4b32
Pipeline #293 skipped
......@@ -313,7 +313,7 @@ int main()
cout << "\nWhich port do you want?\nPort > ";
cin.getline(user_port, 30);
if ((*user_port == 0) || (*user_port == '\n')) strcpy(user_port, "/dev/ttyS0");
if ((*user_port == 0) || (*user_port == '\n')) strcpy(user_port, "0");
if (user_port[0] >= '0' && user_port[0] <= '9')
{
int port_number = atoi(user_port);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment