Merge pull request #2711 from emilyastranova/master

Fix incorrect header length
This commit is contained in:
Iceman 2025-01-14 16:24:36 +01:00 committed by GitHub
commit d100dcc847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -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]

View file

@ -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++;
}