diff --git a/src/ampswitch.cpp b/src/ampswitch.cpp index 2226d75..3c677e4 100644 --- a/src/ampswitch.cpp +++ b/src/ampswitch.cpp @@ -129,7 +129,10 @@ bool CAmpSwitch::Setup() void CAmpSwitch::Process() { if (m_offcommand) + { + printf("switching off, executing \"%s\"\n", m_offcommand); system(m_offcommand); + } while (!g_stop) {