From 16a54ce20c139de3edc153686c210b34c22c811b Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 15:24:04 +0200 Subject: [PATCH] configHandle --- sink/sink20169.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index 424d068..40ec1b7 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -175,7 +175,7 @@ int receiveAndVerifyMinuteBuffer(t_commonHandle *handle, t_minuteBuffer *buf) { return -1; } - t_device *device = findDevice(handle->configHandle, buf->s.deviceId); + t_device *device = findDevice(handle, buf->s.deviceId); if (device == NULL) { logmsg(LOG_ERR, "Device %s not found", buf->s.deviceId); return -4; @@ -286,7 +286,7 @@ int sendToDB(t_commonHandle *handle, const char *location, const char *deviceId, int forwardMinuteBuffer(t_commonHandle *handle, t_minuteBuffer *buf) { - t_device *device = findDevice(handle->configHandle, buf->s.deviceId); + t_device *device = findDevice(handle, buf->s.deviceId); if (device == NULL) { logmsg(LOG_ERR, "Device %s not found", buf->s.deviceId); return -4;