data, main: Move debug envvar to service file
To make it easier to debug iio-sensor-proxy without recompiling.
This commit is contained in:
@@ -5,3 +5,5 @@ Description=IIO Sensor Proxy service
|
|||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=net.hadess.SensorProxy
|
BusName=net.hadess.SensorProxy
|
||||||
ExecStart=@sbindir@/iio-sensor-proxy
|
ExecStart=@sbindir@/iio-sensor-proxy
|
||||||
|
#Uncomment this to enable debug
|
||||||
|
#Environment="G_MESSAGES_DEBUG=all"
|
||||||
|
@@ -766,8 +766,6 @@ int main (int argc, char **argv)
|
|||||||
const gchar * const subsystems[] = { "iio", "input", "platform", NULL };
|
const gchar * const subsystems[] = { "iio", "input", "platform", NULL };
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
/* g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); */
|
|
||||||
|
|
||||||
g_usleep (G_USEC_PER_SEC * 3);
|
g_usleep (G_USEC_PER_SEC * 3);
|
||||||
|
|
||||||
data = g_new0 (SensorData, 1);
|
data = g_new0 (SensorData, 1);
|
||||||
|
Reference in New Issue
Block a user