File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ if [ -z " $1 " ]; then
2
+ echo " Usage: ./debug.sh /dev/ttyACM0"
3
+ exit 1
4
+ fi
1
5
arduino-cli compile \
2
6
--build-property " build.partitions=min_spiffs" \
3
7
--build-property " upload.maximum_size=1966080" \
4
8
--library ./libraries/TFT_eSPI \
5
9
--library ./libraries/QRCode \
6
10
--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
Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ void setup()
163
163
{
164
164
Serial.begin (115200 );
165
165
166
+ Serial.println (" Starting..." );
167
+
166
168
// load screen
167
169
tft.init ();
168
170
tft.setRotation (1 );
@@ -1609,12 +1611,12 @@ bool makeLNURL()
1609
1611
if (selection == " Offline PoS" )
1610
1612
{
1611
1613
randomPin = String (random (1000 , 9999 ));
1612
- preparedURL = baseURLATM ;
1614
+ preparedURL = baseURLPoS ;
1613
1615
}
1614
1616
else // ATM
1615
1617
{
1616
1618
randomPin = String (" FFFF" );
1617
- preparedURL = baseURLATM + " /atm/ " ;
1619
+ preparedURL = baseURLATM;
1618
1620
}
1619
1621
preparedURL += " ?p=" ;
1620
1622
You can’t perform that action at this time.
0 commit comments