diff --git a/firmware/application/qrcodegen.cpp b/firmware/application/qrcodegen.cpp index 7c958ade..2dcdbee5 100644 --- a/firmware/application/qrcodegen.cpp +++ b/firmware/application/qrcodegen.cpp @@ -857,7 +857,7 @@ int8_t qrcode_initText(QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_ } bool qrcode_getModule(QRCode *qrcode, uint8_t x, uint8_t y) { - if (x < 0 || x >= qrcode->size || y < 0 || y >= qrcode->size) { + if ( x >= qrcode->size || y >= qrcode->size) { return false; }