Skip to content

Commit c96aaf8

Browse files
committed
dataflash_logger: optionally take source_system_id and source_component_id from config file
1 parent dea516b commit c96aaf8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dataflash_logger.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ bool DataFlash_Logger::configure(INIReader *config)
8585
return false;
8686
}
8787

88-
target_system_id = config->GetInteger("dflogger", "target_system_id", 0);
89-
target_component_id = config->GetInteger("dflogger", "target_component_id", 0);
88+
this_system_id = config->GetInteger("dflogger", "source_system_id", this_system_id);
89+
this_component_id = config->GetInteger("dflogger", "source_component_id", this_component_id);
90+
91+
target_system_id = config->GetInteger("dflogger", "target_system_id", target_system_id);
92+
target_component_id = config->GetInteger("dflogger", "target_component_id", target_component_id);
9093

9194
return true;
9295
}

0 commit comments

Comments
 (0)