From 2cd1a94955f9e31db249dd3f857c1065259e762c Mon Sep 17 00:00:00 2001 From: artemuhi Date: Sun, 28 Apr 2024 22:05:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20printlib.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- printlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printlib.php b/printlib.php index 745458c..d20e721 100644 --- a/printlib.php +++ b/printlib.php @@ -93,7 +93,7 @@ function printean8($data) { function rawdlen($data) { $len = strlen($data); $l = ($len + 3) % 256; - $h = intdiv($len / 256); + $h = intdiv($len, 256); if ($l<16) { $l=hex2bin("0" . dechex($l)); } else { @@ -106,7 +106,7 @@ function rawdlen($data) { } return $l . $h; } -function printqr($data, $size) { +function printqr($data, $size = 16) { if (strlen($data)<7088) { if ($size<16) { $encs=hex2bin("0" . dechex($size));