fix naming
This commit is contained in:
2026-02-14 14:31:23 +01:00
parent 99b2e07890
commit 5d3782ccfd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#define PUSH_UI_ITEM(item) push_ui_item(&item) #define PUSH_UI_ITEM(item) push_ui_item(&item)
#define EXPORT_SIM(sim) \ #define EXPORT_SIM(sim) \
extern "C" Q_DECL_EXPORT Simulator_base *get_ui(Communication *com, QObject *parent) \ extern "C" Q_DECL_EXPORT Simulator_base *get_sim(Communication *com, QObject *parent) \
{ \ { \
return new sim(com, parent); \ return new sim(com, parent); \
} }
+3 -3
View File
@@ -39,13 +39,13 @@ Simulators::Simulators(uint16_t port, QString can_dev, QString uart_dev, QObject
{ {
lib.setFileName(it.next()); lib.setFileName(it.next());
lib.load(); lib.load();
auto loaded_ui = Get_Sim(lib.resolve("get_sim")); auto loaded_sim = Get_Sim(lib.resolve("get_sim"));
if (loaded_ui == nullptr) if (loaded_sim == nullptr)
{ {
SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString()); SPDLOG_INFO("{} NOT FOUND", lib.fileName().toStdString());
continue; continue;
} }
auto widget = loaded_ui(&m_com, this); auto widget = loaded_sim(&m_com, this);
m_simulators.insert(std::make_pair(widget->name(), widget)); m_simulators.insert(std::make_pair(widget->name(), widget));
lib.unload(); lib.unload();
} }