commit 7f0e4658df8ccc0e9d19a54d9417e3acbd609f85 parent d91969533d8ae5a304bb25233a30ed4b7a1b1d48 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sun, 21 Jul 2024 23:33:01 +0200 fix i2c not sending more than one byte Diffstat:
M | source/nord/n2x/n2xLib/i2c.cpp | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/source/nord/n2x/n2xLib/i2c.cpp b/source/nord/n2x/n2xLib/i2c.cpp @@ -51,8 +51,6 @@ namespace n2x auto res = m_byte & (1<<m_nextBit); --m_nextBit; - if(m_nextBit < 0) - m_nextBit = BitInvalid; return res; } } @@ -149,6 +147,10 @@ namespace n2x onByteWritten(); } } + else if(m_nextBit == BitAck) + { + m_nextBit = 7; + } } }