Store name in LEDStripController to avoid setting it in detector
This commit is contained in:
parent
a1f144daf2
commit
0eb34eec25
4 changed files with 22 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue