...and fix for OSX.

This commit is contained in:
David Given
2021-12-10 23:35:58 +00:00
parent fe8be18c4c
commit 4b815846ee

View File

@@ -119,7 +119,7 @@
SerialPortImpl(const std::string& path)
{
#ifdef __APPLE__
if (name.find("/dev/tty.") != std::string::npos)
if (path.find("/dev/tty.") != std::string::npos)
std::cerr << "Warning: you probably want to be using a /dev/cu.* device\n";
#endif