X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=blobdiff_plain;f=hostside%2Fhidrawconv.c;fp=hostside%2Fhidrawconv.c;h=a642b0b5dbbc18a21d27de36161ccab9da3676a3;hb=572ee10c73a4120699f98aedef1ac777861980b1;hp=bbb1edc10c753ddd1ae1f4f89faec34874edf643;hpb=0fca0b8df63564b24af845eded585553b7b2a3cb;p=trains.git 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); */