[Xastir-dev] [PATCH 1 of 2] Allow position timer value of 0 to disable the automated position beacon
Tom Hayward KD7LXL
tom at tomh.us
Wed Aug 8 19:38:49 EDT 2012
# HG changeset patch
# User Tom Hayward <esarfl at gmail.com>
# Date 1344468976 21600
# Node ID 40822abfd611a67d2999f62b1377cd944d8c7a1c
# Parent 74e7c7b042c1aad58e329da4dd7e0f49dc2d0818
Allow position timer value of 0 to disable the automated position beacon.
diff -r 74e7c7b042c1 -r 40822abfd611 src/main.c
--- a/src/main.c Wed Aug 08 16:55:21 2012 -0600
+++ b/src/main.c Wed Aug 08 17:36:16 2012 -0600
@@ -11867,7 +11867,7 @@
if ( my_position_valid
&& ( transmit_now
|| (emergency_beacon && (current_time > (posit_last_time + 60) ) )
- || (current_time > posit_next_time) ) ) {
+ || (current_time > posit_next_time && POSIT_rate) ) ) {
//fprintf(stderr,"Transmitting posit\n");
@@ -23213,7 +23213,7 @@
XmNsensitive, TRUE,
XmNorientation, XmHORIZONTAL,
XmNborderWidth, 1,
- XmNminimum, 5, // 0.5 = Thirty seconds
+ XmNminimum, 0, // Zero minutes (disables the function)
XmNmaximum, 60*10, // 60 minutes
XmNdecimalPoints, 1, // Move decimal point over one
XmNscaleMultiple, 5, // Move 30 seconds per left mouse
diff -r 74e7c7b042c1 -r 40822abfd611 src/xa_config.c
--- a/src/xa_config.c Wed Aug 08 16:55:21 2012 -0600
+++ b/src/xa_config.c Wed Aug 08 17:36:16 2012 -0600
@@ -2211,7 +2211,7 @@
gps_time = (time_t) get_long ("GPS_TIME", 1l, 86400l, 60l);
/* POSIT RATE */
- POSIT_rate = (time_t) get_long ("POSIT_RATE", 1l, 86400l, 30*60l);
+ POSIT_rate = (time_t) get_long ("POSIT_RATE", 0l, 86400l, 30*60l);
/* OBJECT RATE */
OBJECT_rate = (time_t) get_long ("OBJECT_RATE", 1l, 86400l, 30*60l);
More information about the Xastir-dev
mailing list