From 68f94f5bda1a1ee1581bc76d50adbf397bce2f58 Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Mon, 3 Sep 2018 15:51:08 +0200 Subject: [PATCH] #337: Fix ID to log from memory in log protocol V2 This fixes a bug where it was not possible to log a variable with ID 255 --- src/modules/src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/src/log.c b/src/modules/src/log.c index 7aeba13585..952a6ea85e 100644 --- a/src/modules/src/log.c +++ b/src/modules/src/log.c @@ -572,7 +572,7 @@ static int logAppendBlockV2(int id, struct ops_setting_v2 * settings, int len) return ENOMEM; } - if (settings[i].id != 255) //TOC variable + if (settings[i].id != 0xFFFFul) //TOC variable { varId = variableGetIndex(settings[i].id);