Skip to content

Commit f2df2c4

Browse files
committed
Implemention of showInformation
1 parent 0081f34 commit f2df2c4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/FunctionBlocksModule.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ const std::string FunctionBlocksModule::name()
1414
return "FunctionBlocks";
1515
}
1616

17+
void FunctionBlocksModule::showInformations()
18+
{
19+
#ifdef MODULE_FunctionBlocks_Version
20+
openknx.logger.logWithPrefixAndValues(logPrefix(), "Function Blocks %s", MODULE_FunctionBlocks_Version);
21+
#else
22+
openknx.logger.logWithPrefix(logPrefix(), "Function Blocks");
23+
#endif
24+
}
25+
1726
const std::string FunctionBlocksModule::version()
1827
{
1928
#ifdef MODULE_FunctionBlocks_Version

src/FunctionBlocksModule.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class FunctionBlocksModule : public FCBChannelOwnerModule
88
public:
99
FunctionBlocksModule();
1010
const std::string name() override;
11+
void showInformations() override;
1112
const std::string version() override;
1213
void setup(bool configured) override;
1314
OpenKNX::Channel* createChannel(uint8_t _channelIndex /* this parameter is used in macros, do not rename */) override;

0 commit comments

Comments
 (0)