Skip to content

Commit fd6393d

Browse files
committed
fixup!
1 parent 38c1083 commit fd6393d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

debug.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
if [ -z "$1" ]; then
2+
echo "Usage: ./debug.sh /dev/ttyACM0"
3+
exit 1
4+
fi
15
arduino-cli compile \
26
--build-property "build.partitions=min_spiffs" \
37
--build-property "upload.maximum_size=1966080" \
48
--library ./libraries/TFT_eSPI \
59
--library ./libraries/QRCode \
610
--build-path build --fqbn esp32:esp32:ttgo-lora32 lnpos && \
7-
arduino-cli upload --input-dir build --fqbn esp32:esp32:ttgo-lora32 -p /dev/ttyACM0 && \
8-
arduino-cli monitor -p /dev/ttyACM0 -c baudrate=115200
11+
arduino-cli upload --input-dir build --fqbn esp32:esp32:ttgo-lora32 -p $1 && \
12+
arduino-cli monitor -p $1 -c baudrate=115200

lnpos/lnpos.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ void setup()
163163
{
164164
Serial.begin(115200);
165165

166+
Serial.println("Starting...");
167+
166168
// load screen
167169
tft.init();
168170
tft.setRotation(1);
@@ -1609,12 +1611,12 @@ bool makeLNURL()
16091611
if (selection == "Offline PoS")
16101612
{
16111613
randomPin = String(random(1000, 9999));
1612-
preparedURL = baseURLATM;
1614+
preparedURL = baseURLPoS;
16131615
}
16141616
else // ATM
16151617
{
16161618
randomPin = String("FFFF");
1617-
preparedURL = baseURLATM + "/atm/";
1619+
preparedURL = baseURLATM;
16181620
}
16191621
preparedURL += "?p=";
16201622

0 commit comments

Comments
 (0)