From 07294db484d4b93174a2d52d01bccb4426394729 Mon Sep 17 00:00:00 2001 From: Akmarov Konstantin Date: Thu, 3 Dec 2020 23:56:37 +0300 Subject: [PATCH] fix misspelling in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fc59d0..ebfdc0c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ API QRCode qrcode; // Allocate a chunk of memory to store the QR code -uint8_t qrcodeBytes[qrcode_getBufferSize()]; +uint8_t qrcodeBytes[qrcode_getBufferSize(3)]; qrcode_initText(&qrcode, qrcodeBytes, 3, ECC_LOW, "HELLO WORLD"); ``` @@ -50,7 +50,7 @@ not be scannable, but is just for demonstration purposes). ```c for (uint8 y = 0; y < qrcode.size; y++) { for (uint8 x = 0; x < qrcode.size; x++) { - if (qrcode_getModule(&qrcode, x, y) { + if (qrcode_getModule(&qrcode, x, y)) { Serial.print("**"); } else { Serial.print(" ");