Skip to content

Commit 3f7c527

Browse files
committed
Small comment improvements
1 parent 16ba82f commit 3f7c527

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduinoSerial.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ arduinoSerial::arduinoSerial(std::string port, bool debug){
8484
if(this->debug){ std::cout << "aurdioSeral object created. ttyName = " << this->ttyName << "\n"; }
8585
}
8686

87-
// Default constructor
87+
// Default constructor, assumes no debug and arduino is at /dev/ttyACM0
8888
arduinoSerial::arduinoSerial(){
8989
this->debug = false;
9090
this->ttyName = "/dev/ttyACM0";
@@ -98,8 +98,8 @@ arduinoSerial::~arduinoSerial(){
9898
}
9999

100100
/*
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.
103103
*/
104104
void arduinoSerial::openPort(std::string port){
105105
this->ttyName = port;
@@ -421,7 +421,7 @@ int arduinoSerial::read_s(){
421421

422422
/*
423423
* 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.
425425
* Returns the number of bytes placed in the buffer (0 means no valid data found).
426426
*/
427427
size_t arduinoSerial::readBytes(char *buffer, size_t length){

0 commit comments

Comments
 (0)