From 4b815846eeac102b0d15dd41eaead2277a1d357d Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 10 Dec 2021 23:35:58 +0000 Subject: [PATCH] ...and fix for OSX. --- lib/usb/serial.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/usb/serial.cc b/lib/usb/serial.cc index 4276559b..a58f51fc 100644 --- a/lib/usb/serial.cc +++ b/lib/usb/serial.cc @@ -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