Store name in LEDStripController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-11 20:23:07 -05:00
parent a1f144daf2
commit 0eb34eec25
4 changed files with 22 additions and 16 deletions

View file

@ -15,9 +15,9 @@
#include "LEDStripController.h"
#include "ResourceManager.h"
LEDStripController::LEDStripController()
LEDStripController::LEDStripController(std::string dev_name)
{
name = dev_name;
}
@ -138,6 +138,11 @@ void LEDStripController::InitializeUDP(char * clientname, char * port)
i2cport = NULL;
}
char* LEDStripController::GetLEDString()
{
return(led_string);
}
std::string LEDStripController::GetLocation()
{
if(serialport != NULL)
@ -158,9 +163,9 @@ std::string LEDStripController::GetLocation()
}
}
char* LEDStripController::GetLEDString()
std::string LEDStripController::GetName()
{
return(led_string);
return(name);
}
void LEDStripController::SetLEDs(std::vector<RGBColor> colors)