Merge branch 'Branch_S550_Fast_Emmc' of gitlab.sifar.tech:linux-em-group/s530-ntk into branch_s550_fast_emmc
This commit is contained in:
commit
9046d424ba
|
@ -562,8 +562,8 @@ void UserMainProc(void)
|
|||
|
||||
#endif
|
||||
|
||||
/* move adc cal here */
|
||||
system("sh /usr/share/adc/adc.sh");
|
||||
// /* move adc cal here */
|
||||
// system("sh /usr/share/adc/adc.sh");
|
||||
|
||||
UserMainProc_Init();
|
||||
|
||||
|
|
|
@ -180,6 +180,8 @@ UINT32 sf_get_max_value(UINT32 *_ValueList)
|
|||
}
|
||||
void sf_adc_init(void)
|
||||
{
|
||||
/* move adc cal here */
|
||||
system("sh /usr/share/adc/adc.sh");
|
||||
|
||||
if (adc_open(ADC_CH_VOLDET_BATTERY) != 0) {
|
||||
SLOGE("Can't open ADC channel for battery voltage detection\r\n");
|
||||
|
@ -686,7 +688,11 @@ signed int sf_battery_value_fast_get(void)
|
|||
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
||||
|
||||
SINT32 ret = FAIL;
|
||||
static UINT8 getBatAdcFlg = 0;
|
||||
|
||||
if(getBatAdcFlg)
|
||||
return SUCCESS;
|
||||
getBatAdcFlg = 1;
|
||||
//if((sf_get_mode_flag() == 0) || (needCheckFirst == TRUE))
|
||||
{
|
||||
//printf("[%s:%d]ConfigureModeFlag=%d,needCheckFirst=%d\n",__FUNCTION__,__LINE__,sf_get_mode_flag(),needCheckFirst);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user