From b285da67b29c7a280d997e0cba7bf696d27bb1f2 Mon Sep 17 00:00:00 2001 From: Kent Wiliams Date: Tue, 26 May 2020 12:30:40 -0700 Subject: [PATCH] cleanup --- .../longfi-us915-cayenne-gnss.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-gnss/longfi-us915-cayenne-gnss.ino b/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-gnss/longfi-us915-cayenne-gnss.ino index 28b7e0b..288abe9 100644 --- a/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-gnss/longfi-us915-cayenne-gnss.ino +++ b/ST-B-L072Z-LRWAN1/longfi-us915-cayenne-gnss/longfi-us915-cayenne-gnss.ino @@ -1,5 +1,10 @@ #include #include +#include +#include +#include +#include +#include #include #include @@ -65,7 +70,7 @@ void do_send(osjob_t *j); // Schedule TX every this many seconds (might become longer due to duty // cycle limitations). -const unsigned TX_INTERVAL = 10; +const unsigned TX_INTERVAL = 60; // Pin mapping // @@ -309,10 +314,9 @@ void readGPS() { else Serial.println("not available"); - // if (nmea.isValid()) { lpp.addGPS(1, latitude_mdeg / 1000000, longitude_mdeg / 1000000, alt / 1000); - //}; + Serial.print("Speed: "); Serial.println(nmea.getSpeed() / 1000., 3); Serial.print("Course: ");