More refactoring

last compile dependency on DAC
This commit is contained in:
philippe44
2020-02-09 13:29:25 -08:00
parent 5bee512a85
commit 90d52dabaf
12 changed files with 61 additions and 46 deletions

View File

@@ -62,7 +62,7 @@ void battery_svc_init(void) {
battery.channel = CONFIG_BAT_CHANNEL;
battery.scale = atof(CONFIG_BAT_SCALE);
#ifndef BAT_LOCKED
#ifndef CONFIG_BAT_LOCKED
char *nvs_item = config_alloc_get_default(NVS_TYPE_STR, "bat_config", "n", 0);
if (nvs_item) {
char *p;