From 00b902fc7913585d373733fc8e800f40e8fb4d23 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 16:44:23 +0200 Subject: [PATCH] active --- sink/sink20169.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index 57108b2..890cf38 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -155,7 +155,8 @@ t_device *findDevice(t_commonHandle *handle, char *deviceId) { if (ntuples == 1) { logmsg(LOG_DEBUG, "device found"); char *sharedsecret = PQgetvalue(res2, 0, 0); - logmsg(LOG_DEBUG, "found sharedsecret is %s", sharedsecret); + char *active = PGgetvalue(res2, 0, 1); + logmsg(LOG_DEBUG, "found sharedsecret is %s, active is %d", sharedsecret, active[0]); } else { logmsg(LOG_ERR, "no device found"); }