Skip to content

Commit 5e3a4dd

Browse files
committed
revert qrcode
1 parent cbcfb9b commit 5e3a4dd

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lnpos/lnpos.ino

+5-10
Original file line numberDiff line numberDiff line change
@@ -1013,11 +1013,11 @@ void qrShowCodeLNURL(String message)
10131013

10141014
const char *qrDataChar = qrData.c_str();
10151015
QRCode qrcoded;
1016-
uint8_t qrcodeData[qrcode_getBufferSize(11)];
1017-
qrcode_initText(&qrcoded, qrcodeData, 11, 0, qrDataChar);
1016+
uint8_t qrcodeData[qrcode_getBufferSize(20)];
1017+
qrcode_initText(&qrcoded, qrcodeData, 6, 0, qrDataChar);
10181018

1019-
unsigned int pixSize = 2;
1020-
unsigned int offsetTop = 3;
1019+
unsigned int pixSize = 3;
1020+
unsigned int offsetTop = 5;
10211021
unsigned int offsetLeft = 65;
10221022

10231023
for (uint8_t y = 0; y < qrcoded.size; y++)
@@ -1645,12 +1645,7 @@ bool makeLNURL()
16451645
char *charLnurl = (char *)calloc(strlen(url) * 2, sizeof(byte));
16461646
bech32_encode(charLnurl, "lnurl", data, len);
16471647
to_upper(charLnurl);
1648-
if (selection == "Offline PoS") {
1649-
qrData = charLnurl;
1650-
} else {
1651-
// ATM
1652-
qrData = baseUrlAtmPage + charLnurl;
1653-
}
1648+
qrData = charLnurl;
16541649
Serial.println(qrData);
16551650

16561651
return true;

0 commit comments

Comments
 (0)