[Xastir] Feature? Or am I just lazy...
Reuven Z Gevaryahu
gevaryah at netaxs.com
Mon Feb 10 01:49:02 EST 2003
As I understand, you're asking for the first part of this patch:
--- db.c.~1.208.~ 2003-02-03 23:24:14.000000000 -0500
+++ db.c 2003-02-10 00:56:19.000000000 -0500
@@ -4176,4 +4176,6 @@
NULL);
XtAddCallback(button_message, XmNactivateCallback,
Send_message_call ,(
XtPointer)p_station->call_sign);
+ if ((p_station->flag & ST_MSGCAP)==0)
+ XtSetSensitive(button_message,FALSE);
} else {
// fprintf(stderr,"Found an object or item...\n");
@@ -8435,5 +8437,6 @@
else
p_station->record_type = DF_APRS;
- p_station->flag &= (~ST_MSGCAP); //
clear "message capable" flag
+ //@ stations have messaging per spec
+ p_station->flag |= (ST_MSGCAP); // set
"message
capable" flag
}
break;
The second part is nothing more than a bug on our part. Also the
ST_MSGCAP flag isn't set on weather stations because that are called
APRS_WX1 by decode_info_field, this might be a bug or feature, hard to day.
As for the first part (disable the send button on such stations), I'm
not sure we want to go that route. I'd be more comfortable wasting
bandwidth than having my software unable to communicate with a
misconfigured station.
--Reuven (KB3EHW)
More information about the Xastir
mailing list