diff --git a/src/PhpSerial.php b/src/PhpSerial.php index 1d253d5..bc6fe81 100644 --- a/src/PhpSerial.php +++ b/src/PhpSerial.php @@ -110,7 +110,7 @@ public function deviceSet($device) ) === 0 ) { $this->_winDevice = "COM" . $matches[1]; - $this->_device = "\\.com" . $matches[1]; + $this->_device = "\\.\com" . $matches[1]; $this->_dState = SERIAL_DEVICE_SET; return true;