diff --git a/Desktop_Interface/i2cdecoder.cpp b/Desktop_Interface/i2cdecoder.cpp index 72319198..fd3f6464 100644 --- a/Desktop_Interface/i2cdecoder.cpp +++ b/Desktop_Interface/i2cdecoder.cpp @@ -30,7 +30,7 @@ void i2cDecoder::reset() void i2cDecoder::run() { - qDebug() << "i2cDecoder::run()"; +// qDebug() << "i2cDecoder::run()"; while (serialDistance(sda) > SERIAL_DELAY * sda->sampleRate_bit) { updateBitValues(); @@ -99,13 +99,13 @@ void i2cDecoder::runStateMachine() if ((sdaEdge == edge::rising) && (sclEdge == edge::held_high)) // START { - startCondition(); + stopCondition(); return; } if ((sdaEdge == edge::falling) && (sclEdge == edge::held_high)) // STOP { - stopCondition(); + startCondition(); return; }