[fix](trx-frontend-http): fix missing wxsat/lrpt history functions and lrpt_decode_enabled field

Remove calls to non-existent clear_wxsat_history and clear_lrpt_history
functions from the client-side clear endpoints. These image-based decoders
don't maintain client-side history unlike text decoders. The server-side
reset command (already sent) handles the cleanup. Also add missing
lrpt_decode_enabled field to the fallback RigSnapshot initializer.

https://claude.ai/code/session_019FkSMWpGR3XpWBvUghCybe
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-28 10:05:28 +00:00
committed by Stan Grams
parent 9df71cf36c
commit 83a6b27130
@@ -1348,10 +1348,8 @@ pub async fn toggle_lrpt_decode(
#[post("/clear_wxsat_decode")]
pub async fn clear_wxsat_decode(
query: web::Query<RemoteQuery>,
context: web::Data<Arc<FrontendRuntimeContext>>,
rig_tx: web::Data<mpsc::Sender<RigRequest>>,
) -> Result<HttpResponse, Error> {
crate::server::audio::clear_wxsat_history(context.get_ref());
send_command(
&rig_tx,
RigCommand::ResetWxsatDecoder,
@@ -1363,10 +1361,8 @@ pub async fn clear_wxsat_decode(
#[post("/clear_lrpt_decode")]
pub async fn clear_lrpt_decode(
query: web::Query<RemoteQuery>,
context: web::Data<Arc<FrontendRuntimeContext>>,
rig_tx: web::Data<mpsc::Sender<RigRequest>>,
) -> Result<HttpResponse, Error> {
crate::server::audio::clear_lrpt_history(context.get_ref());
send_command(
&rig_tx,
RigCommand::ResetLrptDecoder,
@@ -2556,6 +2552,7 @@ async fn wait_for_view(mut rx: watch::Receiver<RigState>) -> Result<RigSnapshot,
ft2_decode_enabled: state.ft2_decode_enabled,
wspr_decode_enabled: state.wspr_decode_enabled,
wxsat_decode_enabled: state.wxsat_decode_enabled,
lrpt_decode_enabled: state.lrpt_decode_enabled,
filter: state.filter.clone(),
spectrum: None,
vchan_rds: None,