Skip to content

Commit a7f332d

Browse files
feat(ecl-auto): Fixes
1 parent cb5ea1f commit a7f332d

File tree

1 file changed

+1
-3
lines changed
  • examples/spring-web/src/main/kotlin/io/github/g0dkar/qrcode/springWebExample

1 file changed

+1
-3
lines changed

examples/spring-web/src/main/kotlin/io/github/g0dkar/qrcode/springWebExample/QRCodeService.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ class QRCodeService {
1414
spacing: Int? = null,
1515
shape: QRCodeShapesEnum = SQUARE,
1616
ecl: ErrorCorrectionLevel = MEDIUM,
17-
informationDensity: Int = 6,
18-
forceInformationDensity: Boolean = false,
17+
informationDensity: Int = 0,
1918
): ByteArray =
2019
QRCodeBuilder(shape)
2120
.withErrorCorrectionLevel(ecl)
2221
.withInformationDensity(informationDensity)
23-
.forceInformationDensity(forceInformationDensity) // Must be AFTER withInformationDensity()
2422
.also {
2523
if (spacing != null && spacing >= 0) {
2624
it.withInnerSpacing(spacing)

0 commit comments

Comments
 (0)