From: hama Date: Wed, 15 Jun 2016 18:24:39 +0000 (+0200) Subject: tracing server --test X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=0609c019aeec3529e96e2d55de5884b81cc6f94f;p=cpidjinn tracing server --test --- diff --git a/Server/cpidjinn.cpp b/Server/cpidjinn.cpp index f37013c..517c2ba 100644 --- a/Server/cpidjinn.cpp +++ b/Server/cpidjinn.cpp @@ -1,6 +1,7 @@ #include "cpidjinn.hpp" void blink(PinNumber pin, int count, int duration, Logger* logger){ + printf("blink pin: %d count: %d duration: %d\n", pin, count, duration); GPIOProcessor proc(logger); for (int ix = 0; ix < count; ix++){ proc.writeToGPIO(pin, psHigh); diff --git a/Server/gpiotimer.cpp b/Server/gpiotimer.cpp index 80c87f3..9575ae6 100644 --- a/Server/gpiotimer.cpp +++ b/Server/gpiotimer.cpp @@ -29,7 +29,7 @@ GPIOTimer::~GPIOTimer() { * @param state psLow or psHigh */ void GPIOTimer::switchState(PinState state){ - m_logger->sayf(LOG_DEBUG, "%d: %c", m_pin, psHigh ? 'H' : 'L'); + m_logger->sayf(LOG_DEBUG, "pin %d: %c", m_pin, psHigh ? 'H' : 'L'); m_processor->writeToGPIO(m_pin, state); } /**