Skip to content

Commit ca73ae2

Browse files
mfalkviddhenrikekblad
authored andcommitted
Linux/SerialPort: Log success message (#1021)
This log message makes the Serial gateway print the serial port path, similar to how the Ethernet gateway prints IP and port. Example log output: mysgw: Serial port /dev/MyCoolTTY (115200 baud) created
1 parent 6434d2f commit ca73ae2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/Linux/SerialPort.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void SerialPort::begin(int bauds)
4242
logError("Failed to open serial port.\n");
4343
exit(1);
4444
}
45+
logDebug("Serial port %s (%d baud) created\n", serialPort.c_str(), bauds);
4546
}
4647

4748
bool SerialPort::open(int bauds)

0 commit comments

Comments
 (0)