From 30147369276eef44349c6c867ee04ea200c4a359 Mon Sep 17 00:00:00 2001 From: "RALOVICH, Kristof" Date: Wed, 13 Aug 2014 14:34:48 +0200 Subject: linux: look for usb_serial_simple too for 0fcf:1009 that's the kernel module --- src/Serial.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Serial.cpp b/src/Serial.cpp index 07de0bb..5183aa8 100644 --- a/src/Serial.cpp +++ b/src/Serial.cpp @@ -47,6 +47,7 @@ Serial::instantiate(void*) std::ifstream mods("/proc/modules"); bool cp210x_found=false; bool usbserial_found=false; + bool usbs_simple_found=false; if(!mods.is_open()) LOG(LOG_WARN) << "Could not open /proc/modules!\n"; else @@ -58,6 +59,8 @@ Serial::instantiate(void*) cp210x_found = true; if(line.find("usbserial ")==0) usbserial_found = true; + if(line.find("usb_serial_simple ")==0) + usbs_simple_found = true; } mods.close(); if(cp210x_found) @@ -68,6 +71,10 @@ Serial::instantiate(void*) LOG(LOG_DBG) << "Found loaded usbserial kernel module.\n"; else LOG(LOG_DBG) << "usbserial is not listed among loaded kernel modules.\n"; + if(usbs_simple_found) + LOG(LOG_DBG) << "Found loaded usb_serial_simple kernel module.\n"; + else + LOG(LOG_DBG) << "usb_serial_simple is not listed among loaded kernel modules.\n"; } #endif -- cgit v1.2.3