mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
Fix reading SDA in I2C bit-banging code
We need to use pin_sda_in, not pin_sda to read the PIO Input.
This commit is contained in:
@@ -52,7 +52,7 @@ static bool read_sda(void)
|
||||
bool ret;
|
||||
|
||||
PIO_Configure(&pin_sda_in, PIO_LISTSIZE(pin_sda_in));
|
||||
if (PIO_Get(&pin_sda))
|
||||
if (PIO_Get(&pin_sda_in))
|
||||
ret = true;
|
||||
else
|
||||
ret = false;
|
||||
|
||||
Reference in New Issue
Block a user