From 947ccf70213f86dd2872c0be000d508c443f1d7d Mon Sep 17 00:00:00 2001 From: glaszig Date: Sat, 8 May 2021 14:29:59 -0300 Subject: [PATCH] add margin to wifi qr code to have it work with dark background (i.e. dark theme) --- app/img/wifi-qr-code.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/img/wifi-qr-code.php b/app/img/wifi-qr-code.php index c2505a9c..0abe1849 100644 --- a/app/img/wifi-qr-code.php +++ b/app/img/wifi-qr-code.php @@ -42,7 +42,7 @@ $ssid = qr_encode($ssid); $password = qr_encode($password); $data = "WIFI:S:$ssid;T:$type;P:$password;$hidden;"; -$command = "qrencode -t svg -m 0 -o - " . mb_escapeshellarg($data); +$command = "qrencode -t svg -m 1 -o - " . mb_escapeshellarg($data); $svg = shell_exec($command); $config_mtime = filemtime(RASPI_HOSTAPD_CONFIG);