HAL_ChibiOS: fixed card inserted test for SDC

This commit is contained in:
Andrew Tridgell 2018-12-29 09:40:18 +11:00 committed by Randy Mackay
parent 467286b0b9
commit da21947fe9
1 changed files with 2 additions and 5 deletions

View File

@ -78,11 +78,8 @@ void __late_init(void) {
* @brief SDC card detection.
*/
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
static bool last_status = false;
if (blkIsTransferring(sdcp))
return last_status;
return last_status = (bool)palReadPad(GPIOC, 11);
(void)sdcp;
return true;
}
/**