diff options
-rw-r--r-- | daemon/Makefile | 2 | ||||
-rw-r--r-- | daemon/src/connection_manager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/Makefile b/daemon/Makefile index c42a690..9bda3d2 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -23,7 +23,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS)) # The -MMD and -MP flags together generate Makefiles for us! # These files will have .d instead of .o as the output. -CPPFLAGS := -O3 -std=c++23 $(INC_FLAGS) -MMD -MP +CPPFLAGS := -O3 -std=c++20 $(INC_FLAGS) -MMD -MP LDFLAGS := -lrtmidi -lcurl -ludev diff --git a/daemon/src/connection_manager.cpp b/daemon/src/connection_manager.cpp index 88f6659..7467e4e 100644 --- a/daemon/src/connection_manager.cpp +++ b/daemon/src/connection_manager.cpp @@ -93,7 +93,7 @@ Connection_Manager::refresh_devices([[maybe_unused]] bool add, [[maybe_unused]] bool attached = false; for (auto const & [port, name] : port_map) { - attached |= name.contains(device->device_name); + attached |= (name.find(device->device_name) != name.npos); if (attached) { device->connect(port); |