diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2015-05-31 16:57:44 +0200 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2015-05-31 16:57:44 +0200 |
commit | 38cdf809390e74c52edaeba096fcdd09deb891f4 (patch) | |
tree | 83be73ead6370b86d4165d6f9729adcd92df11df | |
parent | 734823bddb75757edd3b8aeab1a04a1b33957497 (diff) |
tty: add documentation
-rw-r--r-- | src/SerialTty.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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" |