log read only, enhanced, and device

This commit is contained in:
John
2021-01-30 20:14:28 +01:00
parent 6c5cc382db
commit 61958107af
2 changed files with 12 additions and 2 deletions
+6 -2
View File
@@ -1329,10 +1329,14 @@ int main(int argc, char* argv[]) {
signal(SIGINT, signalHandler);
signal(SIGTERM, signalHandler);
logNotice(lf_main, PACKAGE_STRING "." REVISION " started%s",
logNotice(lf_main, PACKAGE_STRING "." REVISION " started%s%s on%s device %s",
device->isReadOnly() ? " read only" : "",
opt.scanConfig ? opt.initialScan == ESC ? " with auto scan"
: opt.initialScan == BROADCAST ? " with broadcast scan" : opt.initialScan == SYN ? " with full scan"
: " with single scan" : "");
: " with single scan" : "",
device->isEnhancedProto() ? " enhanced" : "",
device->getName()
);
// load configuration files
loadConfigFiles(s_messageMap);
+6
View File
@@ -194,6 +194,12 @@ class Device {
*/
bool isReadOnly() const { return m_readOnly; }
/**
* Return whether the device supports the ebusd enhanced protocol.
* @return whether the device supports the ebusd enhanced protocol.
*/
bool isEnhancedProto() const { return m_enhancedProto; }
/**
* Set the @a DeviceListener.
* @param listener the @a DeviceListener.