removed unused variables
This commit is contained in:
@@ -388,7 +388,6 @@ DSTATUS disk_initialize(uint8_t drv)
|
|||||||
{
|
{
|
||||||
uint8_t n, cmd, card_type, ocr[4];
|
uint8_t n, cmd, card_type, ocr[4];
|
||||||
uint8_t buff[16];
|
uint8_t buff[16];
|
||||||
int res;
|
|
||||||
|
|
||||||
if (drv)
|
if (drv)
|
||||||
return STA_NOINIT; /* Supports only drive 0 */
|
return STA_NOINIT; /* Supports only drive 0 */
|
||||||
@@ -458,7 +457,7 @@ DSTATUS disk_initialize(uint8_t drv)
|
|||||||
}
|
}
|
||||||
CardType = card_type; /* Card type */
|
CardType = card_type; /* Card type */
|
||||||
|
|
||||||
res = disk_ioctl(0, MMC_GET_CSD, buff);
|
//res = disk_ioctl(0, MMC_GET_CSD, buff);
|
||||||
/*
|
/*
|
||||||
if (res == RES_OK)
|
if (res == RES_OK)
|
||||||
{
|
{
|
||||||
@@ -475,7 +474,7 @@ DSTATUS disk_initialize(uint8_t drv)
|
|||||||
SPICLK_FAST(); /* Set fast clock */
|
SPICLK_FAST(); /* Set fast clock */
|
||||||
Stat &= ~STA_NOINIT; /* Clear STA_NOINIT flag */
|
Stat &= ~STA_NOINIT; /* Clear STA_NOINIT flag */
|
||||||
xprintf("card type: %d\r\n", card_type);
|
xprintf("card type: %d\r\n", card_type);
|
||||||
res = disk_ioctl(0, MMC_GET_CSD, buff);
|
//res = disk_ioctl(0, MMC_GET_CSD, buff);
|
||||||
/*
|
/*
|
||||||
if (res == RES_OK)
|
if (res == RES_OK)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user