diff --git a/src/eac.c b/src/eac.c index c41dd05..578a4b8 100644 --- a/src/eac.c +++ b/src/eac.c @@ -213,7 +213,7 @@ uint16_t sm_get_le() { if (tag == 0x97) { uint16_t le = 0; for (uint16_t t = 1; t <= tag_len; t++) { - le |= (*tag_data++) << (tag_len - t); + le |= (*tag_data++) << (tag_len - t) * 8; } return le; }