Commit c5709936 authored by Adrien Dorsaz's avatar Adrien Dorsaz Committed by Arek Stopczynski

Have correct debug messages about /dev/hidraw device file.

Signed-off-by: 's avatarArek Stopczynski <arekquest@gmail.com>
parent 032b2a62
#include <hardware/emotiv/sbs2emotivmounter.h>
#include "QFile"
Sbs2EmotivMounter* Sbs2EmotivMounter::m_pInstance = 0;
......@@ -207,7 +208,12 @@ void Sbs2EmotivMounter::readHardwareParameters()
serialNumber = readSerialNumber();
#if defined(Q_OS_ANDROID)
path = QString("/dev/hidraw1");
qDebug() << "[ANDROID] hidraw device found: " << path << serialNumber;
QFile file(path);
if(file.exists()){
qDebug() << "[ANDROID] hidraw device found : " << path << " with serial number : " << serialNumber;
}else{
qDebug() << "[ANDROID] hidraw device not found at expected place : " << path;
}
#elif defined (Q_OS_LINUX)
struct hid_device_info *devs, *cur_dev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment