Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions src/open_ocd_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,17 @@ where
.into_string()
.map_err(|_| "Failed to convert config path to string")?;

let ws_foler = dirs::get_wireless_stack_dir()?
let ws_folder = dirs::get_wireless_stack_dir()?
.into_os_string()
.into_string()
.map_err(|_| "Failed to convert config path to string")?;
.map_err(|_| "Failed to convert wireless stack path to string")?;

let tmp_folder = dirs::get_tmp_dir()?
.into_os_string()
.into_string()
.map_err(|_| "Failed to convert tmp_dir to string.")?;

cmd.args(&[
"-s",
&config_folder,
"-s",
&tmp_folder,
"-s",
&ws_foler,
]);
cmd.args(&["-s", &config_folder, "-s", &tmp_folder, "-s", &ws_folder]);

// The xpack-bundled OpenOCD ships its standard scripts alongside the
// executable in `<exe_dir>/scripts/`. Our .cfg files reference these via
Expand Down
12 changes: 3 additions & 9 deletions src/ui/tab_wireless_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ impl TabWirelessStack {
None => {
Self::send_log(
&mut o,
LogType::Error(
"Flash failed: OpenOCD terminated by signal".into(),
),
LogType::Error("Flash failed: OpenOCD terminated by signal".into()),
)
.await;
Self::send_step(&mut o, FwStep::Ready).await;
Expand Down Expand Up @@ -365,9 +363,7 @@ impl TabWirelessStack {
None => {
Self::send_log(
&mut o,
LogType::Error(
"Flash failed: OpenOCD terminated by signal".into(),
),
LogType::Error("Flash failed: OpenOCD terminated by signal".into()),
)
.await;
Self::send_step(&mut o, FwStep::Ready).await;
Expand Down Expand Up @@ -472,9 +468,7 @@ impl TabWirelessStack {
None => {
Self::send_log(
&mut o,
LogType::Error(
"Flash failed: OpenOCD terminated by signal".into(),
),
LogType::Error("Flash failed: OpenOCD terminated by signal".into()),
)
.await;
Self::send_step(&mut o, FwStep::Ready).await;
Expand Down
Loading