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:
committed by
Colby Klein
parent
bdaabb3525
commit
1369c1fb39
@@ -32,6 +32,7 @@ LightsDriver_Linux_PIUIO::LightsDriver_Linux_PIUIO()
|
||||
|
||||
LightsDriver_Linux_PIUIO::~LightsDriver_Linux_PIUIO()
|
||||
{
|
||||
LightsDriver::reset();
|
||||
if( fd >= 0 )
|
||||
close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user