Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-03 12:01:27 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-03 12:01:27 +0300
commit3fb9fd4e30e16afe4a41aa4b6d5417e54fac6674 (patch)
tree0d0811c7e382cab214b60fc5e672cc1a50cc3ce2 /src/slic3r/GUI/Mouse3DController.cpp
parentc74ba012e2f81f3ce60ae012e303c6d913ead45f (diff)
#3389 - Added logging of detected 3Dconnexion device
Diffstat (limited to 'src/slic3r/GUI/Mouse3DController.cpp')
-rw-r--r--src/slic3r/GUI/Mouse3DController.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/slic3r/GUI/Mouse3DController.cpp b/src/slic3r/GUI/Mouse3DController.cpp
index a4c9ef255..20eaa3d91 100644
--- a/src/slic3r/GUI/Mouse3DController.cpp
+++ b/src/slic3r/GUI/Mouse3DController.cpp
@@ -619,15 +619,12 @@ bool Mouse3DController::connect_device()
hid_get_product_string(m_device, product.data(), 1024);
m_device_str += "/" + boost::nowide::narrow(product.data());
- BOOST_LOG_TRIVIAL(info) << "Connected device: " << m_device_str;
-
-#if ENABLE_3DCONNEXION_DEVICES_DEBUG_OUTPUT
- std::cout << std::endl << "Connected device:" << std::endl;
- std::cout << "Manufacturer/product: " << m_device_str << std::endl;
- std::cout << "Manufacturer id.....: " << vendor_id << " (" << std::hex << vendor_id << std::dec << ")" << std::endl;
- std::cout << "Product id..........: " << product_id << " (" << std::hex << product_id << std::dec << ")" << std::endl;
- std::cout << "Path................: '" << path << "'" << std::endl;
-#endif // ENABLE_3DCONNEXION_DEVICES_DEBUG_OUTPUT
+ BOOST_LOG_TRIVIAL(info) << "Connected 3DConnexion device:";
+ BOOST_LOG_TRIVIAL(info) << "Manufacturer/product: " << m_device_str;
+ BOOST_LOG_TRIVIAL(info) << "Manufacturer id.....: " << vendor_id << " (" << std::hex << vendor_id << std::dec << ")";
+ BOOST_LOG_TRIVIAL(info) << "Product id..........: " << product_id << " (" << std::hex << product_id << std::dec << ")";
+ if (!path.empty())
+ BOOST_LOG_TRIVIAL(info) << "Path................: '" << path << "'";
// get device parameters from the config, if present
double translation_speed = 1.0;