hyperiond doesnt call switchoff to the leds on exit (#19)

* Fixed compile error when no grabbers are defined

* Remove stupid avahi warning...

* Started on the new integrated UDP listener to replace the python effect.

Cloned boblight server and rename it to be UDP listener
It compiles!, It starts! it seems to work as a second boblight protocol server...

* moving from the exsting TCP to UDP.
i can catch packets now.. need to consider ditching the connection handling

* It kinda works right now.
UDP packets are received, led data is sent and hyperion displays them.
.... for a moment before going back to what it was doing

* It works!

looks like the default priority of 900 was fighting with something else that was also 900

commented out some udp packet debugging

* oops, forgot to add the changes the the previous commit

* resolving merge conflicts

* The refactoring lost the automatic switchoff of leds.
Now we track the hyperion object and delete it on exit (which cleans up the led strip)
This commit is contained in:
penfold42 2016-06-20 17:10:23 +10:00 committed by brindosch
parent a23735d1ef
commit 25a79d6279
2 changed files with 4 additions and 1 deletions

View File

@ -36,9 +36,10 @@ HyperionDaemon::HyperionDaemon(std::string configFile, QObject *parent)
, _fbGrabber(nullptr)
, _osxGrabber(nullptr)
, _webConfig(nullptr)
, _hyperion(nullptr)
{
loadConfig(configFile);
Hyperion::initInstance(_config, configFile);
_hyperion = Hyperion::initInstance(_config, configFile);
Info(_log, "Hyperion started and initialised");
}
@ -55,6 +56,7 @@ HyperionDaemon::~HyperionDaemon()
delete _boblightServer;
delete _udpListener;
delete _webConfig;
delete _hyperion;
}

View File

@ -75,4 +75,5 @@ private:
FramebufferWrapper* _fbGrabber;
OsxWrapper* _osxGrabber;
WebConfig* _webConfig;
Hyperion* _hyperion;
};