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
+5
View File
@@ -11,6 +11,11 @@ LightsDriver_Export::LightsDriver_Export()
memset( &m_State, 0, sizeof(m_State) );
}
LightsDriver_Export::~LightsDriver_Export()
{
LightsDriver::reset();
}
void LightsDriver_Export::Set( const LightsState *ls )
{
m_Lock.Lock();