diff --git a/build/libraries/devices/sdmc/ARM7/drnand.c b/build/libraries/devices/sdmc/ARM7/drnand.c index af9b31e..4e36736 100644 --- a/build/libraries/devices/sdmc/ARM7/drnand.c +++ b/build/libraries/devices/sdmc/ARM7/drnand.c @@ -138,16 +138,7 @@ BOOL nandCheckMedia( void) //TODO:nand partition (systemid!=0x0B) && (systemid!=0x0C)) { return( FALSE); } - /* Check the System ID of unuse partitions. */ - for( i=1; i<4; i++) { - systemid = bufp[450+(16*i)]; - if( systemid != 0x00) { - return( FALSE); - } - } - /**/ - /*もっと厳密にチェックするならパーティション0開始位置の - 正当性も調べる*/ + return( TRUE); } diff --git a/build/libraries/devices/sdmc/ARM7/sdmc.c b/build/libraries/devices/sdmc/ARM7/sdmc.c index 7e08b32..e82f642 100644 --- a/build/libraries/devices/sdmc/ARM7/sdmc.c +++ b/build/libraries/devices/sdmc/ARM7/sdmc.c @@ -2401,7 +2401,7 @@ static void SDCARD_Thread( void* arg) while( TRUE) { /* メッセージ待ち */ PRINTDEBUG( "rcv mes sdThread\n"); - OS_ReceiveMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK); + OS_ReadMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK); SdMsg = (SDCARDMsg*)current_dat; PRINTDEBUG( "sd task : receive command : %d\n", SdMsg->operation); @@ -2444,6 +2444,7 @@ static void SDCARD_Thread( void* arg) /*メッセージ返送*/ current_dat = (OSMessage)api_result; OS_SendMessage( &sdmc_result_dtq, current_dat, OS_MESSAGE_BLOCK); + OS_ReceiveMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK); } }