Turn lights out on exit (#1646)

* Add LightsDriver::reset

Function will reset all lights to off
Function needs to be called by each of the driver implementations
as needed during destruction

* Reset lights to off on exit
This commit is contained in:
Gareth Francis
2018-02-28 11:52:01 -08:00
committed by Colby Klein
parent bdaabb3525
commit 1369c1fb39
9 changed files with 23 additions and 0 deletions
@@ -32,6 +32,7 @@ LightsDriver_Linux_PIUIO::LightsDriver_Linux_PIUIO()
LightsDriver_Linux_PIUIO::~LightsDriver_Linux_PIUIO()
{
LightsDriver::reset();
if( fd >= 0 )
close(fd);
}