mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 03:56:26 -04:00
Adding a name to the LIFX controller
This commit is contained in:
@@ -11,8 +11,10 @@
|
||||
using json = nlohmann::json;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
LIFXController::LIFXController(std::string ip)
|
||||
LIFXController::LIFXController(std::string ip, std::string name)
|
||||
{
|
||||
this->name = name;
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Fill in location string with device's IP address |
|
||||
\*-----------------------------------------------------------------*/
|
||||
@@ -36,7 +38,7 @@ std::string LIFXController::GetLocation()
|
||||
|
||||
std::string LIFXController::GetName()
|
||||
{
|
||||
return("LIFX");
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string LIFXController::GetVersion()
|
||||
|
||||
Reference in New Issue
Block a user