Commit fde4a25f authored by Andreas Bircher's avatar Andreas Bircher

cleaning up the logging

parent d58460bb
......@@ -84,7 +84,6 @@ public class QGCActivity extends QtActivity implements TextToSpeech.OnInitListen
@Override
public void onNewData(final byte[] dataA, int userDataA)
{
// IK: Log.d(TAG, "UsbIoManager.Listener.onNewData: read " + dataA.length + " bytes");
nativeDeviceNewData(userDataA, dataA);
}
};
......@@ -199,7 +198,7 @@ public class QGCActivity extends QtActivity implements TextToSpeech.OnInitListen
// MAKE SURE WE HAVE ENTRIES
if (m_devices.size() <= 0)
{
// Log.e(TAG, "No USB devices found");
//Log.e(TAG, "No USB devices found");
return null;
}
......@@ -385,10 +384,8 @@ public class QGCActivity extends QtActivity implements TextToSpeech.OnInitListen
UsbSerialDriver driverL = m_openedDevices.get(idA);
if (driverL == null) {
Log.e(TAG, "startIoManager: no UsbSerialDriver found");
if (driverL == null)
return;
}
UsbIoManager managerL = new UsbIoManager(driverL, m_Listener, m_userData.get(idA));
m_ioManager.put(idA, managerL);
......@@ -421,10 +418,8 @@ public class QGCActivity extends QtActivity implements TextToSpeech.OnInitListen
{
UsbSerialDriver driverL = m_openedDevices.get(idA);
if (driverL == null) {
Log.e(TAG, "setParameters: no UsbSerialDriver found");
if (driverL == null)
return false;
}
try
{
......@@ -487,21 +482,15 @@ public class QGCActivity extends QtActivity implements TextToSpeech.OnInitListen
{
UsbSerialDriver driverL = m_openedDevices.get(idA);
if (driverL == null) {
Log.e(TAG, "write: no UsbSerialDriver found");
if (driverL == null)
return 0;
}
try
{
// Log.d(TAG, "write: about to write " + sourceA.length + " bytes");
int bytesWritten = driverL.write(sourceA, timeoutMSecA);
// Log.d(TAG, "write: successfully written " + bytesWritten + " bytes");
return bytesWritten;
return driverL.write(sourceA, timeoutMSecA);
}
catch(IOException eA)
{
Log.d(TAG, "write: exception " + eA.getMessage());
return 0;
}
/*
......
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