diff --git a/src/logid/Device.cpp b/src/logid/Device.cpp index d7b02f5..dfde69f 100644 --- a/src/logid/Device.cpp +++ b/src/logid/Device.cpp @@ -41,6 +41,9 @@ Device::Device(const std::shared_ptr& raw_device, void Device::_init() { + logPrintf(INFO, "Device found: %s on %s:%d", name().c_str(), + hidpp20().devicePath().c_str(), _index); + _addFeature(); _addFeature(); diff --git a/src/logid/Receiver.cpp b/src/logid/Receiver.cpp index 365cb20..1efa1ea 100644 --- a/src/logid/Receiver.cpp +++ b/src/logid/Receiver.cpp @@ -27,7 +27,6 @@ using namespace logid::backend; Receiver::Receiver(std::string path) : dj::ReceiverMonitor(path), _path (path) { - logPrintf(DEBUG, "logid::Receiver created on %s", path.c_str()); } void Receiver::addDevice(hidpp::DeviceConnectionEvent event) diff --git a/src/logid/backend/hidpp/Device.cpp b/src/logid/backend/hidpp/Device.cpp index 654630f..680ed3f 100644 --- a/src/logid/backend/hidpp/Device.cpp +++ b/src/logid/backend/hidpp/Device.cpp @@ -49,7 +49,6 @@ Device::InvalidDevice::Reason Device::InvalidDevice::code() const noexcept return _reason; } -/// TODO: Initialize a single RawDevice for each path. Device::Device(const std::string& path, DeviceIndex index): _raw_device (std::make_shared(path)), _receiver (nullptr), _path (path), _index (index)