|
|
@@ -406,7 +406,7 @@ static int ini_rw_ptotal(dictionary *dic, int rw, PowerTotal_t *ptotal)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- token = "ptotal:brdMax";
|
|
|
+ token = "ptotal:brd_max";
|
|
|
if(rw==INI_READ) {
|
|
|
r = iniparser_getint(dic, token, -1);
|
|
|
if(r==-1) {
|
|
|
@@ -511,7 +511,7 @@ static int ini_reset(paras_handle_t *h)
|
|
|
fprintf(fp, "voltage = \"%d\"\n", info->ptotal.voltage);
|
|
|
fprintf(fp, "current = \"%d\"\n", info->ptotal.current);
|
|
|
fprintf(fp, "power = \"%d\"\n", info->ptotal.power);
|
|
|
- fprintf(fp, "brdMax = \"%d\"\n", info->ptotal.brdMax);
|
|
|
+ fprintf(fp, "brd_max = \"%d\"\n", info->ptotal.brdMax);
|
|
|
fprintf(fp, "\n");
|
|
|
|
|
|
fclose(fp);
|