[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:
@@ -502,10 +502,16 @@ fn spawn_rig_audio_stack(
|
||||
}
|
||||
|
||||
if rig_cfg.aprsfi.enabled {
|
||||
let cs = callsign.clone().unwrap_or_default();
|
||||
let cs = rig_cfg
|
||||
.aprsfi
|
||||
.callsign
|
||||
.clone()
|
||||
.or_else(|| callsign.clone())
|
||||
.unwrap_or_default();
|
||||
if cs.trim().is_empty() {
|
||||
warn!(
|
||||
"[{}] APRS-IS IGate enabled but [general].callsign is empty; uplink disabled",
|
||||
"[{}] APRS-IS IGate enabled but callsign is not set \
|
||||
(set [aprsfi].callsign or [general].callsign); uplink disabled",
|
||||
rig_cfg.id
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user