Skip to content

Commit

Permalink
fix: fix changing incorrect topic
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmay committed Nov 15, 2024
1 parent acfac96 commit e2de864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robotica-slint/src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ pub fn run(
let (state_tx, state_rx) = stateful::create_pipe("audio_state");
state_rx.send_to_mqtt_json(
&mqtt,
format!("robotica/state/{topic_substr}"),
format!("state/{topic_substr}"),
&mqtt::SendOptions::default(),
);

let (power_tx, power_rx) = stateful::create_pipe("audio_messages_enabled");
power_rx.send_to_mqtt_string(
&mqtt,
format!("state/{}/power", config.messages_enabled_subtopic),
format!("robotica/state/{}/power", config.messages_enabled_subtopic),
&mqtt::SendOptions::default(),
);

Expand Down

0 comments on commit e2de864

Please sign in to comment.