From 38cdf809390e74c52edaeba096fcdd09deb891f4 Mon Sep 17 00:00:00 2001 From: "RALOVICH, Kristof" Date: Sun, 31 May 2015 16:57:44 +0200 Subject: tty: add documentation --- src/SerialTty.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SerialTty.cpp b/src/SerialTty.cpp index 556e792..65e4415 100644 --- a/src/SerialTty.cpp +++ b/src/SerialTty.cpp @@ -366,6 +366,11 @@ SerialTty::open() if(m_p->m_fd<0) { + // Ofcourse you don't want to be running as root, so add your user to the group dialout like so: + // + // sudo usermod -a -G dialout yourUserName + // + // Log off and log on again for the changes to take effect! char se[256]; char* ss = strerror_r(m_p->m_fd, se, sizeof(se)); LOG(antpm::LOG_ERR) << "Opening serial port failed! Make sure cp210x kernel module is loaded, and /dev/ttyUSBxxx was created by cp210x!\n" -- cgit v1.2.3