mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-11-17 19:32:21 +01:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cff8abc248 | ||
|
|
a9cf1a150b | ||
|
|
9aa4062d7b | ||
|
|
12c8e40b3c |
No files matched your search
@@ -22,8 +22,9 @@
|
||||
[data-variant="night"] .btn-save{background:#000;border-color:#000;color:#ff6b6b;}
|
||||
[data-variant="night"] .btn-save:hover{background:#1a0000;color:#ff8a8a;}
|
||||
body{background:var(--msh-bg);color:var(--msh-text);font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;}
|
||||
.app-topbar{background:#b21d1d;border-bottom:1px solid rgba(0,0,0,.25);height:56px;z-index:1030;}
|
||||
.app-topbar{background:#b21d1d;border-bottom:1px solid rgba(0,0,0,.25);min-height:56px;padding-top:.35rem;padding-bottom:.35rem;z-index:1030;}
|
||||
.app-topbar .brand{font-weight:600;color:#fff;font-size:1.1rem;}
|
||||
@media(max-width:575.98px){.app-topbar{flex-wrap:wrap;row-gap:.35rem;}.app-topbar .brand{flex:1 1 100%;font-size:.95rem;line-height:1.25;}}
|
||||
.btn-icon{background:transparent;border:1px solid rgba(255,255,255,.45);color:#fff;display:inline-flex;align-items:center;}
|
||||
.btn-icon:hover{background:rgba(255,255,255,.15);color:#fff;}
|
||||
.btn-save{background:#fff;border:1px solid #fff;color:#b21d1d;font-weight:600;}
|
||||
|
||||
+1
-1
@@ -215,7 +215,7 @@
|
||||
|
||||
void listenAPRSIS() {
|
||||
if (SerialAT.available()) {
|
||||
String packetAPRSIS = SerialAT.readStringUntil('\r');
|
||||
String packetAPRSIS = SerialAT.readStringUntil('\n'); // modem lines end with "\r\n": reading up to '\r' left the '\n' and the next call stalled for the 1 s stream timeout (same fix as listenAPRSIS in aprs_is_utils.cpp); trim() removes the '\r'
|
||||
packetAPRSIS.trim();
|
||||
if (!packetAPRSIS.startsWith("#") && packetAPRSIS.indexOf("+IPD") == -1 && packetAPRSIS.indexOf("RECV") == -1 && packetAPRSIS.length() > 0) {
|
||||
APRS_IS_Utils::processAPRSISPacket(packetAPRSIS);
|
||||
|
||||
@@ -376,7 +376,10 @@ namespace APRS_IS_Utils {
|
||||
#else
|
||||
if (aprsIsClient.connected()) {
|
||||
if (aprsIsClient.available()) {
|
||||
String aprsisPacket = aprsIsClient.readStringUntil('\r');
|
||||
// APRS-IS lines end with "\r\n". Reading up to '\r' left the '\n' in the buffer, and the next call then waited the stream's default 1 s
|
||||
// for another '\r' before returning, so the main loop (and with it the radio) stalled for a second after every line from the server.
|
||||
// Read up to '\n' instead; trim() below removes the '\r'.
|
||||
String aprsisPacket = aprsIsClient.readStringUntil('\n');
|
||||
aprsisPacket.trim(); // Serial.println(aprsisPacket);
|
||||
processAPRSISPacket(aprsisPacket);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user