From 68b0dc9e2eb7700377945d2dedaba4d9ab11330d Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 3 Sep 2019 20:29:32 -0500 Subject: [PATCH] Fix LED Strips on Windows --- Controllers/LEDStripController/LEDStripControllerDetect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Controllers/LEDStripController/LEDStripControllerDetect.cpp b/Controllers/LEDStripController/LEDStripControllerDetect.cpp index 7ccdaf36..c06b8abd 100644 --- a/Controllers/LEDStripController/LEDStripControllerDetect.cpp +++ b/Controllers/LEDStripController/LEDStripControllerDetect.cpp @@ -42,9 +42,8 @@ void DetectLEDStripControllers(std::vector &rgb_controllers) snprintf(arg1, 64, "/proc/%d/exe", getpid()); readlink(arg1, filename, 1024); strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str()); -#endif - strcat(filename, "/settings.txt"); +#endif //Open settings file infile.open(filename);