Skip to content

Commit

Permalink
Added missing input var of Config resource
Browse files Browse the repository at this point in the history
  • Loading branch information
azoitl committed Aug 22, 2024
1 parent d5f05dd commit c564871
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/stdfblib/ita/Config_EMB_RES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const SFBInterfaceSpec Config_EMB_RES::scmFBInterfaceSpec = {

Config_EMB_RES::Config_EMB_RES(CStringDictionary::TStringId paInstanceNameId, forte::core::CFBContainer &paDevice) :
CResource(paDevice, scmFBInterfaceSpec, paInstanceNameId),
fb_START(g_nStringIdSTART, *this) {
fb_START(g_nStringIdSTART, *this),
var_OPCUA_Namespace(){
}

Config_EMB_RES::~Config_EMB_RES() = default;
Expand All @@ -44,7 +45,10 @@ bool Config_EMB_RES::initialize() {
return true;
}

CIEC_ANY *Config_EMB_RES::getDI(const size_t) {
CIEC_ANY *Config_EMB_RES::getDI(const size_t paIndex) {
switch(paIndex) {
case 0: return &var_OPCUA_Namespace;
}
return nullptr;
}

Expand Down
3 changes: 3 additions & 0 deletions src/stdfblib/ita/Config_EMB_RES.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class Config_EMB_RES : public CResource {

private:
forte::core::CInternalFB<FORTE_E_RESTART> fb_START;

CIEC_WSTRING var_OPCUA_Namespace;

static const SFBInterfaceSpec scmFBInterfaceSpec;

static const CStringDictionary::TStringId scmVarInputNameIds[];
Expand Down

0 comments on commit c564871

Please sign in to comment.