commit c1f03045cf439f4a048e73d714bad3ae4addaa92
parent 8222874a67ea4d4a9e9f2db0534cc94b031b29c2
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sun, 28 Jul 2024 21:19:35 +0200
fix writing incorrect SDA bit causing UC to receive crap from I2C
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp
@@ -79,7 +79,7 @@ namespace n2x
{
auto r = v;
r &= ~(1 << g_bitSDA);
- r |= *res ? g_bitSDA : 0;
+ r |= *res ? (1<<g_bitSDA) : 0;
getPortGP().writeRX(r);
LOG("PortGP return SDA=" << *res);