File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ arduinoSerial::arduinoSerial(std::string port, bool debug){
84
84
if (this ->debug ){ std::cout << " aurdioSeral object created. ttyName = " << this ->ttyName << " \n " ; }
85
85
}
86
86
87
- // Default constructor
87
+ // Default constructor, assumes no debug and arduino is at /dev/ttyACM0
88
88
arduinoSerial::arduinoSerial (){
89
89
this ->debug = false ;
90
90
this ->ttyName = " /dev/ttyACM0" ;
@@ -98,8 +98,8 @@ arduinoSerial::~arduinoSerial(){
98
98
}
99
99
100
100
/*
101
- Change the serial port that the object is using.
102
- After calling this function, begin() must be called again.
101
+ * Change the serial port that the object is using.
102
+ * After calling this function, begin() must be called again.
103
103
*/
104
104
void arduinoSerial::openPort (std::string port){
105
105
this ->ttyName = port;
@@ -421,7 +421,7 @@ int arduinoSerial::read_s(){
421
421
422
422
/*
423
423
* Reads characters from the serial port into a buffer.
424
- * The function terminates if the terminator character is read, or if it times out .
424
+ * The function terminates if length bytes have been read, or the timeout is reached .
425
425
* Returns the number of bytes placed in the buffer (0 means no valid data found).
426
426
*/
427
427
size_t arduinoSerial::readBytes (char *buffer, size_t length){
You can’t perform that action at this time.
0 commit comments