Skip to content

Commit d2c45c4

Browse files
committed
Merge branch 'pulllonline' into main
2 parents 765e468 + 620955b commit d2c45c4

File tree

4 files changed

+7
-517
lines changed

4 files changed

+7
-517
lines changed

.github/workflows/arduino.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github-token: ${{ secrets.GITHUB_TOKEN }}
1818
fqbn: ${{ matrix.fqbn }}
1919
platforms: |
20-
- name: esp32:[email protected].17
20+
- name: esp32:[email protected].1
2121
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
2222
sketch-paths: |
2323
- lnpos/lnpos.ino

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ arduino-cli config --additional-urls https://raw.githubusercontent.com/espressif
44
arduino-cli core update-index
55
arduino-cli upgrade
66
# uBitcoin is broken on esp32 3.x.x
7-
arduino-cli core install esp32:[email protected].17
7+
arduino-cli core install esp32:[email protected].1
88
arduino-cli lib install ArduinoJson Base64 Keypad uBitcoin
99
arduino-cli compile \
1010
--build-property "build.partitions=min_spiffs" \
1111
--build-property "upload.maximum_size=1966080" \
1212
--library ./libraries/TFT_eSPI \
1313
--library ./libraries/QRCode \
14-
--build-path build --fqbn esp32:esp32:ttgo-lora32 lnpos
14+
--build-path build --fqbn esp32:esp32:ttgo-lora32-oled-v1 lnpos

lnpos/100_config.ino

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,10 @@ void readFiles()
128128
lnurlPoS = getJsonValue(doc, "config_lnurlpos");
129129
lnurlATM = getJsonValue(doc, "config_lnurlatm");
130130
masterKey = getJsonValue(doc, "config_masterkey");
131-
lnbitsServer = getJsonValue(doc, "config_server");
132-
invoice = getJsonValue(doc, "config_invoice");
133131
lncurrency = getJsonValue(doc, "config_lncurrency");
134132
lnurlATMMS = getJsonValue(doc, "config_lnurlatmms");
135133
lnurlATMPin = getJsonValue(doc, "config_lnurlatmpin");
136134
decimalplaces = getJsonValue(doc, "config_decimalplaces");
137-
ssid = getJsonValue(doc, "config_wifi_ssid");
138-
password = getJsonValue(doc, "config_wifi_password");
139135
}
140136

141137
////////LNURL PoS string/////////
@@ -191,34 +187,6 @@ void readFiles()
191187
Serial.println("MasterKey not set");
192188
}
193189

194-
//////////Lnbits Server/////////
195-
if (lnbitsServer != "null" || lnbitsServer != "")
196-
{
197-
Serial.println("");
198-
Serial.println("lnbitsServer used from memory");
199-
Serial.println("lnbitsServer: " + lnbitsServer);
200-
}
201-
else
202-
{
203-
Serial.println("lnbitsServer not set");
204-
}
205-
206-
/////////LNbits Server///////
207-
if (invoice != "null" || invoice != "")
208-
{
209-
Serial.println("");
210-
Serial.println("invoice key used from memory");
211-
Serial.println("invoice key: " + invoice);
212-
if (invoice != "")
213-
{
214-
menuItemCheck[0] = 1;
215-
}
216-
}
217-
else
218-
{
219-
Serial.println("invoice key not set");
220-
}
221-
222190
/////////PoS Currency///////
223191
if (lncurrency != "null" || lncurrency != "")
224192
{
@@ -267,30 +235,6 @@ void readFiles()
267235
{
268236
Serial.println("no. fiat decimal places not set");
269237
}
270-
271-
/////////WiFi SSID///////
272-
if (ssid != "null" || ssid != "")
273-
{
274-
Serial.println("");
275-
Serial.println("WiFi SSID used from memory");
276-
Serial.println("WiFi SSID: " + ssid);
277-
}
278-
else
279-
{
280-
Serial.println("WiFi SSID not set");
281-
}
282-
283-
/////////WiFi password///////
284-
if (decimalplaces != "null" || decimalplaces != "")
285-
{
286-
Serial.println("");
287-
Serial.println("WiFi password used from memory");
288-
Serial.println("WiFi password: " + password);
289-
}
290-
else
291-
{
292-
Serial.println("WiFi password not set");
293-
}
294238
}
295239
paramFile.close();
296240
}

0 commit comments

Comments
 (0)