[feat](trx-reporting): add callsign field to AprsFiConfig
Allow specifying the IGate callsign directly in [aprsfi] instead of relying on [general].callsign. The aprsfi-specific callsign takes precedence; [general].callsign is used as fallback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -45,8 +45,10 @@ pub struct AprsFiConfig {
|
||||
pub host: String,
|
||||
/// APRS-IS server port
|
||||
pub port: u16,
|
||||
/// APRS-IS passcode. -1 = auto-compute from [general].callsign.
|
||||
/// APRS-IS passcode. -1 = auto-compute from callsign.
|
||||
pub passcode: i32,
|
||||
/// IGate callsign. Overrides [general].callsign when set.
|
||||
pub callsign: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for AprsFiConfig {
|
||||
@@ -56,6 +58,7 @@ impl Default for AprsFiConfig {
|
||||
host: "rotate.aprs.net".to_string(),
|
||||
port: 14580,
|
||||
passcode: -1,
|
||||
callsign: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user