停用QSPI_ELM
停用TMPFS_ELM SD挂在到"/"根目录 数据库文件修改存储路径 配置文件修改存储路径
This commit is contained in:
1 parent
5006477fc9
commit
c3741e1888
7 files changed
+15
-12
No files matched your search
@@ -12,7 +12,7 @@
|
||||
#include "ini.h"
|
||||
#include "Variable.h"
|
||||
|
||||
#define INI_config "/sys/828config.ini"
|
||||
#define INI_config "/828config.ini"
|
||||
|
||||
#define DBG_TAG "INI.config"
|
||||
#define DBG_LVL DBG_LOG
|
||||
@@ -74,7 +74,7 @@ int read_sample(void)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
LOG_I("read config");
|
||||
LOG_D("read config");
|
||||
// 读取各种类型的值
|
||||
strncpy(machine_ID, ini_get_value(ini, "CONFIG", "ID","99"),sizeof(machine_ID));
|
||||
strncpy(machine_name, ini_get_value(ini, "CONFIG", "NAME","SC828"),sizeof(machine_name));
|
||||
@@ -83,4 +83,4 @@ int read_sample(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
INIT_APP_EXPORT(read_sample);
|
||||
//INIT_APP_EXPORT(read_sample);
|
||||
@@ -11,5 +11,6 @@
|
||||
#define APPLICATIONS_INI_CONFIG_H_
|
||||
|
||||
extern void write_sample(void);
|
||||
extern int read_sample(void);
|
||||
|
||||
#endif /* APPLICATIONS_INI_CONFIG_H_ */
|
||||
Reference in new issue
Block a user