Skip to content

Commit

Permalink
mmcf: fix IsInserted function
Browse files Browse the repository at this point in the history
* Update mmcf's IsInserted function. Now correctly fails when needed and
succeeds when it should.
  • Loading branch information
ApacheThunder authored and lifehackerhansol committed Mar 17, 2024
1 parent 70adc07 commit 52ac7ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/mmcf/source/iointerface.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ bool return OUT: true if a CF card is inserted
bool isInserted (void) {
// Change register, then check if value did change
*REG_CF_STS = CF_STS_INSERTED;
// Investigate why this isn't working in modern homebrew
// return ((*REG_CF_STS & 0xff) == CF_STS_INSERTED);
return true;
return (*REG_CF_STS & CF_STS_INSERTED);
}


Expand Down

0 comments on commit 52ac7ed

Please sign in to comment.