Skip to content

Commit

Permalink
Merge pull request #2711 from emilyastranova/master
Browse files Browse the repository at this point in the history
Fix incorrect header length
  • Loading branch information
iceman1001 authored Jan 14, 2025
2 parents 87bdc25 + e505365 commit d100dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac
- Added simulation function to `hf iclass legrec` (@antiklesys)
- Added keys from Momentum firmware projects. (@onovy)
- Added Dutch Statistics Agency default key (@eagle00789)
- Fixed Wiegand decode with hex input dropping the first bit (@emilyastranova)
- Changed `hf mf autopwn` - now allows for custom suffix (@zxkmm)

## [Orca.4.19552][2024-11-22]
Expand Down
2 changes: 1 addition & 1 deletion client/src/wiegand_formatutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static uint8_t get_length_from_header(wiegand_message_t *data) {
len = 0;
}

while (hfmt > 1) {
while (hfmt > 0) {
hfmt >>= 1;
len++;
}
Expand Down

0 comments on commit d100dcc

Please sign in to comment.