mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
AndroidGCS: Suppress some debugging information from telemetry
This commit is contained in:
parent
3a3ac552da
commit
9ded1bb9fb
@ -16,9 +16,9 @@ public class Telemetry {
|
|||||||
|
|
||||||
private final String TAG = "Telemetry";
|
private final String TAG = "Telemetry";
|
||||||
public static int LOGLEVEL = 0;
|
public static int LOGLEVEL = 0;
|
||||||
public static boolean WARN = LOGLEVEL > 1;
|
public static boolean WARN = LOGLEVEL > 2;
|
||||||
|
public static boolean ERROR = LOGLEVEL > 1;
|
||||||
public static boolean DEBUG = LOGLEVEL > 0;
|
public static boolean DEBUG = LOGLEVEL > 0;
|
||||||
|
|
||||||
public class TelemetryStats {
|
public class TelemetryStats {
|
||||||
public int txBytes;
|
public int txBytes;
|
||||||
public int rxBytes;
|
public int rxBytes;
|
||||||
@ -305,7 +305,7 @@ public class Telemetry {
|
|||||||
processObjectQueue();
|
processObjectQueue();
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
Log.e(TAG,"Error: received a transaction completed when did not expect it.");
|
if (ERROR) Log.e(TAG,"Error: received a transaction completed when did not expect it.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,7 +369,7 @@ public class Telemetry {
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
Log.e(TAG,"Error: inside of processObjectTransaction with no transPending");
|
if (ERROR) Log.e(TAG,"Error: inside of processObjectTransaction with no transPending");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,7 +429,7 @@ public class Telemetry {
|
|||||||
// Don nothing if a transaction is already in progress (should not happen)
|
// Don nothing if a transaction is already in progress (should not happen)
|
||||||
if (transPending)
|
if (transPending)
|
||||||
{
|
{
|
||||||
Log.e(TAG,"Dequeue while a transaction pending");
|
if (ERROR) Log.e(TAG,"Dequeue while a transaction pending");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user