Better Incorporate coaa.h

This commit is contained in:
Malcolm Robb 2013-09-30 11:46:36 +01:00
parent f8216130de
commit f50744b11b
5 changed files with 9 additions and 5 deletions

Binary file not shown.

View file

@ -27,7 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
#include "coaa.h"
#include "dump1090.h" #include "dump1090.h"
// //
// ============================= Utility functions ========================== // ============================= Utility functions ==========================

View file

@ -37,7 +37,7 @@
// MinorVer changes when additional features are added, but not for bug fixes (range 00-99) // MinorVer changes when additional features are added, but not for bug fixes (range 00-99)
// DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update // DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update
// //
#define MODES_DUMP1090_VERSION "1.07.2709.13" #define MODES_DUMP1090_VERSION "1.07.2909.13"
// ============================= Include files ========================== // ============================= Include files ==========================
@ -64,7 +64,10 @@
#endif #endif
// ============================= #defines =============================== // ============================= #defines ===============================
//
// If you have a valid coaa.h, these values will come from it. If not,
// then you can enter your own values in the #else section here
//
#ifdef USER_LATITUDE #ifdef USER_LATITUDE
#define MODES_USER_LATITUDE_DFLT (USER_LATITUDE) #define MODES_USER_LATITUDE_DFLT (USER_LATITUDE)
#define MODES_USER_LONGITUDE_DFLT (USER_LONGITUDE) #define MODES_USER_LONGITUDE_DFLT (USER_LONGITUDE)

View file

@ -104,8 +104,8 @@ void ppup1090Init(void) {
modesInitErrorInfo(); modesInitErrorInfo();
// Setup the uploader - read the user paramaters from the coaa.h header file // Setup the uploader - read the user paramaters from the coaa.h header file
coaa1090.fUserLat = USER_LATITUDE; coaa1090.fUserLat = MODES_USER_LATITUDE_DFLT;
coaa1090.fUserLon = USER_LONGITUDE; coaa1090.fUserLon = MODES_USER_LONGITUDE_DFLT;
strcpy(coaa1090.strAuthCode,STR(USER_AUTHCODE)); strcpy(coaa1090.strAuthCode,STR(USER_AUTHCODE));
strcpy(coaa1090.strRegNo, STR(USER_REGNO)); strcpy(coaa1090.strRegNo, STR(USER_REGNO));

View file

@ -27,6 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
#include "coaa.h"
#include "view1090.h" #include "view1090.h"
// //
// ============================= Utility functions ========================== // ============================= Utility functions ==========================