[Pkg-running-devel] [antpm] 01/20: tty: add documentation

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Sun Jun 28 12:26:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 38cdf809390e74c52edaeba096fcdd09deb891f4
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Sun May 31 16:57:44 2015 +0200

    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"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list