Skip to content

Commit 31c6000

Browse files
authored
Merge pull request #49 from kikuchan/fix-format-information
fix: format information bit position
2 parents 39c1586 + e487660 commit 31c6000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rmqrcode/rmqrcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def _compute_format_info(self):
305305
"""Computes format information with BCH code."""
306306
format_information_data = self._qr_version["version_indicator"]
307307
if self._error_correction_level == ErrorCorrectionLevel.H:
308-
format_information_data |= 1 << 6
308+
format_information_data |= 1 << 5
309309
reminder_polynomial = compute_bch(format_information_data)
310310
format_information_data = format_information_data << 12 | reminder_polynomial
311311
return format_information_data

0 commit comments

Comments
 (0)