Skip to content

Commit

Permalink
Legacy/OGN Export Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roema committed Nov 4, 2020
1 parent b49c3b5 commit f2d1745
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 238 deletions.
3 changes: 3 additions & 0 deletions ognbase/APRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ void OGN_APRS_Export()
if (!Container[i].stealth && !Container[i].no_track || settings->ignore_no_track && settings->ignore_stealth)
SoC->WiFi_transmit_TCP(AircraftPacket);
}

for (int i=0; i < MAX_TRACKING_OBJECTS; i++) // cleaning up containers
Container[i] = EmptyFO;
}

bool OGN_APRS_Register(ufo_t* this_aircraft)
Expand Down
9 changes: 7 additions & 2 deletions ognbase/RF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "Log.h"
#endif /* LOGGER_IS_ENABLED */

#define DEBUG 1 // Nick to see messages
#define DEBUG 0

byte RxBuffer[MAX_PKT_SIZE];

Expand Down Expand Up @@ -594,8 +594,13 @@ bool RF_Receive(void)
{
bool rval = false;

if (RF_ready && rf_chip)
if (RF_ready && rf_chip) {
rval = rf_chip->receive();
}
if (rval) {
// make sure the correct timestamp is used for decoding
ThisAircraft.timestamp = slotTime;
}

return rval;
}
Expand Down
2 changes: 1 addition & 1 deletion ognbase/SoftRF.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <raspi/raspi.h>
#endif /* RASPBERRY_PI */

#define SOFTRF_FIRMWARE_VERSION "0.0.5"
#define SOFTRF_FIRMWARE_VERSION "0.0.6"
#define SOFTRF_IDENT "OGNB-"

#define ENTRY_EXPIRATION_TIME 10 /* seconds */
Expand Down
Loading

0 comments on commit f2d1745

Please sign in to comment.