From 487a161f3e034ee55091b4a67902c839edbefc7f Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Fri, 10 Nov 2023 10:51:53 -0300 Subject: [PATCH] =?UTF-8?q?Update=20declarando=20vari=C3=A1veis=20ausentes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zpl-image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zpl-image.js b/zpl-image.js index 787015a..80f0fa8 100644 --- a/zpl-image.js +++ b/zpl-image.js @@ -299,6 +299,7 @@ function right(mono) { // empty space around the edges of the image if !notrim. function monochrome(rgba, width, height, black, notrim) { // Convert black from percent to 0..255 value + let y = 0, x = 0; black = 255 * black / 100; let minx, maxx, miny, maxy; @@ -425,7 +426,7 @@ function crc16(s) { // This is not an accumlating crc routine. Normally, the acc is intialized to // 0xffff then inverted on each call. We just start with 0. let crc = 0; - let j, i; + let j, i, c; for (i = 0; i < s.length; i++) { c = s.charCodeAt(i);