mystring.c 添加字符串转浮点函数

This commit is contained in:
ranchuan
2023-10-17 18:03:00 +08:00
parent cbbb2af298
commit dc92f48f75
8 changed files with 61 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
#include "debug.h"
#include "stdlib.h"
#include "dev_flash.h"
#include "compiler_info.h"
#include "elec_det.h"
#include "base/delay.h"
@@ -138,7 +139,7 @@ array_def *elec_bootinfo(void)
Ye_BoardCheck();
board_st.hard_v=sys_param()->hard_version;
board_st.resistor_diff=sys_param()->resistor_diff;
board_st.hard_v=19;
board_st.soft_v=(int)(str_atof(SOFT_VERSION)*100);
array_def *r=arr_creat();
arr_append(r,0);
arr_appends(r,&board_st,sizeof(BoartCheck_st));
@@ -404,13 +405,11 @@ array_def *elec_check_with_scheme(array_def *uid_psw)
checker_runcfg.excue_rtv=1;
task_fun();
Checker_Excueindex(task_index);
checker_runcfg.rtv_index-=checker_runcfg.rtv_count;
if(checker_runcfg.excue_rtv==0)
break;
checker_runcfg.rtv_index-=checker_runcfg.rtv_count;
}
if(checker_runcfg.excue_rtv){
checker_runcfg.rtv_index+=checker_runcfg.rtv_count;
}
checker_runcfg.rtv_index+=checker_runcfg.rtv_count;
DBG_LOG("task_index:%d,taskid:%d,ret=%d,rtv_index=%d.",task_index,taskid,checker_runcfg.excue_rtv,
checker_runcfg.rtv_index);