mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed card inserted test for SDC
This commit is contained in:
parent
467286b0b9
commit
da21947fe9
|
@ -78,11 +78,8 @@ void __late_init(void) {
|
||||||
* @brief SDC card detection.
|
* @brief SDC card detection.
|
||||||
*/
|
*/
|
||||||
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||||
static bool last_status = false;
|
(void)sdcp;
|
||||||
|
return true;
|
||||||
if (blkIsTransferring(sdcp))
|
|
||||||
return last_status;
|
|
||||||
return last_status = (bool)palReadPad(GPIOC, 11);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue