DataFlash: fixed sense of card detect

This commit is contained in:
Andrew Tridgell 2011-12-28 15:50:20 +11:00
parent 6ca613337b
commit bd9488f1e4
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ void DataFlash_APM2::ReadManufacturerID()
// This function return 1 if Card is inserted on SD slot
bool DataFlash_APM2::CardInserted()
{
return (digitalRead(DF_CARDDETECT) != 0);
return (digitalRead(DF_CARDDETECT) == 0);
}
// Read the status register