params: cleanup constructor (#25834)
old-commit-hash: 583304fc7b5970ec5f079720bf6c6aa7ff91ce5a
This commit is contained in:
@@ -198,10 +198,8 @@ std::unordered_map<std::string, uint32_t> keys = {
|
||||
|
||||
|
||||
Params::Params(const std::string &path) {
|
||||
const char* env = std::getenv("OPENPILOT_PREFIX");
|
||||
prefix = env ? "/" + std::string(env) : "/d";
|
||||
std::string default_param_path = ensure_params_path(prefix);
|
||||
params_path = path.empty() ? default_param_path : ensure_params_path(prefix, path);
|
||||
prefix = "/" + util::getenv("OPENPILOT_PREFIX", "d");
|
||||
params_path = ensure_params_path(prefix, path);
|
||||
}
|
||||
|
||||
std::vector<std::string> Params::allKeys() const {
|
||||
|
||||
Reference in New Issue
Block a user