From: Ian Jackson Date: Mon, 25 Apr 2011 20:52:24 +0000 (+0100) Subject: hidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?p=trains.git;a=commitdiff_plain;h=572ee10c73a4120699f98aedef1ac777861980b1 hidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805 --- diff --git a/hostside/hidrawconv.c b/hostside/hidrawconv.c index bbb1edc..a642b0b 100644 --- a/hostside/hidrawconv.c +++ b/hostside/hidrawconv.c @@ -45,7 +45,7 @@ static LastReports lasts; else #define MSG_BITS(ent) (msg[(ent)->pos] & (ent)->mask) -#define LAST_BITS(ent) (msg[(ent)->pos] & (ent)->mask) +#define LAST_BITS(ent) (last[(ent)->pos] & (ent)->mask) /* uint8_t MSG_BITS(EntType *ent); * uint8_t LAST_BITS(EntType *ent); */