send message just when gps is updated
This commit is contained in:
parent
3c67b3d4c3
commit
85addf9cbf
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ void loop()
|
||||||
{
|
{
|
||||||
if(gps.time.isValid()
|
if(gps.time.isValid()
|
||||||
&& (gps.time.minute() == update_min || update_min == -1)
|
&& (gps.time.minute() == update_min || update_min == -1)
|
||||||
&& gps.location.isValid())
|
&& gps.location.isValid()
|
||||||
|
&& gps.location.isUpdated())
|
||||||
{
|
{
|
||||||
APRSMessage msg;
|
APRSMessage msg;
|
||||||
msg.setSource("OE5BPA-9");
|
msg.setSource("OE5BPA-9");
|
||||||
|
|
Loading…
Reference in a new issue