Skip to content

Commit

Permalink
#337: Fix ID to log from memory in log protocol V2
Browse files Browse the repository at this point in the history
This fixes a bug where it was not possible to log a variable with ID 255
  • Loading branch information
ataffanel committed Sep 3, 2018
1 parent c9c4691 commit 68f94f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 68f94f5

Please sign in to comment.