mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
無線LED点灯リトライ追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2332 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
428f7cdc00
commit
48281ae97c
@ -24,6 +24,8 @@
|
|||||||
#include "internal_api.h"
|
#include "internal_api.h"
|
||||||
|
|
||||||
// define data-----------------------------------------------------------------
|
// define data-----------------------------------------------------------------
|
||||||
|
#define SYSM_PM_RETRY_NUM 5 // PMリトライ回数
|
||||||
|
|
||||||
// extern data-----------------------------------------------------------------
|
// extern data-----------------------------------------------------------------
|
||||||
extern void LCFG_VerifyAndRecoveryNTRSettings( void );
|
extern void LCFG_VerifyAndRecoveryNTRSettings( void );
|
||||||
|
|
||||||
@ -249,12 +251,18 @@ TitleProperty *SYSM_ReadParameters( void )
|
|||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
{
|
{
|
||||||
PMWirelessLEDStatus enable;
|
PMWirelessLEDStatus enable;
|
||||||
|
int retry = SYSM_PM_RETRY_NUM;
|
||||||
if( LCFG_THW_IsForceDisableWireless() ) {
|
if( LCFG_THW_IsForceDisableWireless() ) {
|
||||||
enable = PM_WIRELESS_LED_OFF;
|
enable = PM_WIRELESS_LED_OFF;
|
||||||
}else {
|
}else {
|
||||||
enable = LCFG_TSD_IsAvailableWireless() ? PM_WIRELESS_LED_ON : PM_WIRELESS_LED_OFF;
|
enable = LCFG_TSD_IsAvailableWireless() ? PM_WIRELESS_LED_ON : PM_WIRELESS_LED_OFF;
|
||||||
}
|
}
|
||||||
PMi_SetWirelessLED( enable );
|
while( retry-- > 0 ) {
|
||||||
|
if ( PMi_SetWirelessLED( enable ) == PM_RESULT_SUCCESS ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
OS_Sleep(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user