diff --git a/app/Services/Wireguard/QrCode.php b/app/Services/Wireguard/QrCode.php index 6d04576..e328754 100644 --- a/app/Services/Wireguard/QrCode.php +++ b/app/Services/Wireguard/QrCode.php @@ -21,7 +21,9 @@ final class QrCode // against a screen — more redundancy would only make the code denser. $matrix = Encoder::encode($text, ErrorCorrectionLevel::L())->getMatrix(); $width = $matrix->getWidth(); - $quiet = 2; + // Four modules is the specified minimum quiet zone. Less than that and + // some readers fail to find the symbol at all against a bordered card. + $quiet = 4; $total = $width + 2 * $quiet; $cells = '';