Skip to content
Snippets Groups Projects

epicardium: BLE opt in

Merged koalo requested to merge koalo/bleoptin into master
Files
3
+ 1
3
@@ -28,12 +28,12 @@ int bleShallStart(void)
char cfgBuf[BLEMAXCFGBYTES + 1];
int readNum = epic_file_read(bleConfigFile, cfgBuf, BLEMAXCFGBYTES);
epic_file_close(bleConfigFile);
if (readNum < 0) {
LOG_INFO(
"startup",
"can not read ble.txt -> BLE is not started"
);
epic_file_close(bleConfigFile);
return 0;
}
cfgBuf[readNum] = '\0';
@@ -46,12 +46,10 @@ int bleShallStart(void)
"startup",
"ble.txt is not \"active=true\" -> BLE is not started"
);
epic_file_close(bleConfigFile);
return 0;
}
LOG_INFO("startup", "ble.txt is \"active=true\" -> BLE is starting");
epic_file_close(bleConfigFile);
return 1;
}
Loading