From 9270476caecfb6a385c62b708aa5818fa8be426d Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Fri, 1 May 2026 11:11:55 +0200 Subject: [PATCH] Revert "default equipment name and frontend name assigne, and overwiten if necessary" This reverts commit 5ec5df0a56c704b9c9d78b60cff62f81ee9ab773. --- src/frontend/ePowerSwitchFrontend.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/ePowerSwitchFrontend.cpp b/src/frontend/ePowerSwitchFrontend.cpp index 1e56e18..29b06a9 100644 --- a/src/frontend/ePowerSwitchFrontend.cpp +++ b/src/frontend/ePowerSwitchFrontend.cpp @@ -11,13 +11,15 @@ int main(int argc, char *argv[]) { "please use an absolute path."); } - std::string frontendName = DEFAULT_FRONTEND_NAME; - std::string equipmentName = DEFAULT_EQUIPMENT_NAME; + std::string frontendName; + std::string equipmentName; if (argc == 1) { + frontendName = DEFAULT_FRONTEND_NAME; TMFE::Instance()->Msg(MINFO, __FUNCTION__, "No frontend name provided; %s will be used", DEFAULT_FRONTEND_NAME); + equipmentName = DEFAULT_EQUIPMENT_NAME; TMFE::Instance()->Msg(MINFO, __FUNCTION__, "No equipment name provided; %s will be used", DEFAULT_EQUIPMENT_NAME);