added: execute the off command before exiting

This commit is contained in:
Bob 2016-09-11 20:59:45 +02:00
parent a62a639172
commit 008ab9a0e4

View file

@ -186,6 +186,13 @@ void CAmpSwitch::Process()
}
}
}
//if the off command is passed on the command line, execute that before exiting
if (m_offcommand)
{
printf("switching off, executing \"%s\"\n", m_offcommand);
system(m_offcommand);
}
}
void CAmpSwitch::Cleanup()