mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
DataFlash: fixed sense of card detect
This commit is contained in:
parent
1cb8728a6b
commit
42eb62cc46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user