chiark
/
gitweb
/
~ijackson
/
trains.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805
[trains.git]
/
hostside
/
hidrawconv.c
diff --git
a/hostside/hidrawconv.c
b/hostside/hidrawconv.c
index bbb1edc10c753ddd1ae1f4f89faec34874edf643..a642b0b5dbbc18a21d27de36161ccab9da3676a3 100644
(file)
--- 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);
*/