std::vector<OnDemandStart> on_demand_services;
-std::string a314_config_file = "/etc/opt/a314/a314d.conf";
-std::string home_env = "HOME=/home/pi";
+std::string a314_config_file = "./a314/files_pi/a314d.conf";
+std::string home_env = "HOME=./";
static void load_config_file(const char *filename)
{
FILE *f = fopen(filename, "rt");
- if (f == nullptr)
+ if (f == nullptr) {
return;
+ }
char line[256];
std::vector<char *> parts;
uint32_t address = *(uint32_t *)&(cc->payload[0]);
uint32_t length = cc->payload.size() - 4;
-
if (get_mapped_item_by_address(cfg, address) != -1) {
int32_t index = get_mapped_item_by_address(cfg, address);
uint8_t *map = &cfg->map_data[index][address - cfg->map_offset[index]];