aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2024-05-24 01:18:10 +0200
committerLeonard Kugis <leonard@kug.is>2024-05-24 01:18:10 +0200
commit558a36fdcd660a945b71085f2738d65160798d00 (patch)
tree1cb2e94cf5ca48e7d210b20114885164283cb182
parentefd8b0a08ac9439845c2c2f9d50d30cda8692421 (diff)
byte_read: Returning false if no mode is selectedHEADmaster
-rw-r--r--FT245.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/FT245.c b/FT245.c
index 0648c73..cac5aa8 100644
--- a/FT245.c
+++ b/FT245.c
@@ -831,6 +831,7 @@ static bool byte_read(ft245_t *ft245, uint8_t byte, uint8_t *value)
return true;
}
#endif // (FT245_DRIVER_MODE_STATIC == 1)
+ return false;
}
static bool tx_word(ft245_t *ft245)