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
This commit is contained in:
Mikael Falkvidd
2018-01-07 14:52:08 +01:00
committed by Henrik Ekblad
parent 6434d2fa99
commit ca73ae20d6
+1
View File
@@ -42,6 +42,7 @@ void SerialPort::begin(int bauds)
logError("Failed to open serial port.\n");
exit(1);
}
logDebug("Serial port %s (%d baud) created\n", serialPort.c_str(), bauds);
}
bool SerialPort::open(int bauds)