From 97b174f6df3c4ebbf066f91f80552d2f2b9d88b5 Mon Sep 17 00:00:00 2001 From: Fabio Streun Date: Thu, 14 May 2020 12:43:25 +0200 Subject: [PATCH 1/2] Fix DeviceConfig default initialization Initialize smartshift to nullptr. Otherwise, the device configuration contains a SmartshiftStatus, even though, none was declared in the configuration file. This causes later an error if the device does not support SmartShift. --- src/logid/Configuration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logid/Configuration.h b/src/logid/Configuration.h index 463b51f..07d5765 100644 --- a/src/logid/Configuration.h +++ b/src/logid/Configuration.h @@ -20,7 +20,7 @@ namespace logid DeviceConfig(DeviceConfig* dc, Device* dev); DeviceConfig(const libconfig::Setting& root); const int* dpi = nullptr; - HIDPP20::ISmartShift::SmartshiftStatus* smartshift; + HIDPP20::ISmartShift::SmartshiftStatus* smartshift = nullptr; const uint8_t* hiresscroll = nullptr; std::map actions; const bool baseConfig = true; From 992f2dad35fb6e36874994c7250851e6c29155f0 Mon Sep 17 00:00:00 2001 From: Fabio Streun Date: Thu, 14 May 2020 17:02:40 +0200 Subject: [PATCH 2/2] Add MX Vertical to tested devices --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29a4a98..e74649f 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ To install, run `sudo make install` after building. You can set the daemon to st | Device | Compatible? | |:---------:|:-----------:| | MX Master | Yes | +|MX Vertical| Yes | | T400 | Yes | | K400r | Untested | | K350 | Untested |