From ce836ce7b67847d37d293a8302431bb0df5dcbc8 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 20 Aug 2020 13:59:13 -0500 Subject: [PATCH] Fix E1.31 device name strings --- RGBController/E131ControllerDetect.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RGBController/E131ControllerDetect.cpp b/RGBController/E131ControllerDetect.cpp index 78d7228a..c22c24c6 100644 --- a/RGBController/E131ControllerDetect.cpp +++ b/RGBController/E131ControllerDetect.cpp @@ -57,7 +57,13 @@ void DetectE131Controllers(std::vector &rgb_controllers) bool new_device = false; //Clear E131 device data - memset(&dev, 0, sizeof(E131Device)); + dev.name = ""; + dev.type = ZONE_TYPE_SINGLE; + dev.num_leds = 0; + dev.rgb_order = E131_RGB_ORDER_RBG; + dev.matrix_order = E131_MATRIX_ORDER_HORIZONTAL_TOP_LEFT; + dev.matrix_width = 0; + dev.matrix_height = 0; //Open settings file infile.open(filename); @@ -70,6 +76,7 @@ void DetectE131Controllers(std::vector &rgb_controllers) { dev.name = line; new_device = false; + continue; } if (line == "")