mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-06 21:32:14 +02:00
updated structs of last Stations and 25seg buffer
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#include "configuration.h"
|
||||
#include "station_utils.h"
|
||||
#include "query_utils.h"
|
||||
#include "lora_utils.h"
|
||||
|
||||
extern Configuration Config;
|
||||
extern std::vector<String> lastHeardStation;
|
||||
extern String versionDate;
|
||||
extern int rssi;
|
||||
extern float snr;
|
||||
extern int freqError;
|
||||
extern Configuration Config;
|
||||
extern std::vector<LastHeardStation> lastHeardStations;
|
||||
extern String versionDate;
|
||||
extern int rssi;
|
||||
extern float snr;
|
||||
extern int freqError;
|
||||
|
||||
|
||||
namespace QUERY_Utils {
|
||||
@@ -27,13 +28,13 @@ namespace QUERY_Utils {
|
||||
answer.concat(" ");
|
||||
answer.concat(String(Config.beacon.longitude,3));
|
||||
} else if (queryQuestion == "?APRSL") {
|
||||
if (lastHeardStation.size() == 0) {
|
||||
if (lastHeardStations.size() == 0) {
|
||||
char answerArray[50];
|
||||
snprintf(answerArray, sizeof(answerArray), "No Station Listened in the last %d min.", Config.rememberStationTime);
|
||||
answer.concat(answerArray);
|
||||
} else {
|
||||
for (int i=0; i<lastHeardStation.size(); i++) {
|
||||
answer += lastHeardStation[i].substring(0,lastHeardStation[i].indexOf(",")) + " ";
|
||||
for (int i=0; i<lastHeardStations.size(); i++) {
|
||||
answer += lastHeardStations[i].station + " ";
|
||||
}
|
||||
answer.trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user