summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/cell.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-07 19:26:54 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-07 19:26:54 +0200
commit6c0542f5aaafc0d463876ade4427ccbec0ee5eda (patch)
tree062aa02867892ef03f03ae9be0d638d592b3ba7b /fw/fe310/eos/cell.c
parent3af816f20b94326b05a6dde21d7f734df14b61d3 (diff)
added cell message types
Diffstat (limited to 'fw/fe310/eos/cell.c')
-rw-r--r--fw/fe310/eos/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/fe310/eos/cell.c b/fw/fe310/eos/cell.c
index 2421f4b..4b4fcc0 100644
--- a/fw/fe310/eos/cell.c
+++ b/fw/fe310/eos/cell.c
@@ -19,7 +19,7 @@ static void cell_handle_evt(unsigned char type, unsigned char *buffer, uint16_t
unsigned char idx = (mtype & EOS_CELL_MTYPE_MASK) >> 4;
if (idx < EOS_CELL_MAX_MTYPE) {
- evt_handler[idx](type, buffer, len);
+ evt_handler[idx](mtype & ~EOS_CELL_MTYPE_MASK, buffer, len);
} else {
eos_net_bad_handler(type, buffer, len);
}