From 9e9a9b520139c893661b0cb08d13a56d2bdfa15f Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Sun, 27 Nov 2022 04:04:42 +0000 Subject: [PATCH] fix inverse conditional --- source/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/card.c b/source/card.c index ba21269..1234db1 100644 --- a/source/card.c +++ b/source/card.c @@ -16,7 +16,7 @@ bool loadCard(TCardManager *cm, CARDFileInfo *fileInfo, char *fileName, u32 *dst return -1; // Read codes into destination address - if (CARDRead(fileInfo, dst, fileInfo->length, 0)) + if (!CARDRead(fileInfo, dst, fileInfo->length, 0)) return -1; // Done