From aab12e0ed0f5ed0392c66b516338d8ddf9ba64ba Mon Sep 17 00:00:00 2001 From: Bob Date: Sun, 3 Aug 2014 19:34:06 +0200 Subject: [PATCH] fixed: print the off command at start first --- src/ampswitch.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) {