Skip to content

Commit 0a1968a

Browse files
Fix serial upgrade prompt popping up for TCP.
1 parent 367fdfd commit 0a1968a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

console_backend/src/cli_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub struct CliOptions {
124124
#[clap(long = "show-file-connection")]
125125
pub show_file_connection: bool,
126126

127-
/// Don't use opengl in plots.
127+
/// Don't use opengl in plots. Plots will look nicer but require more system resources.
128128
#[clap(long = "no-opengl", parse(from_flag = Not::not))]
129129
pub no_opengl: bool,
130130

resources/UpdateTab.qml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ MainTab {
212212
firmwareVersion.currentVersion = updateTabData.fw_version_current;
213213
firmwareVersion.latestVersion = updateTabData.fw_version_latest;
214214
}
215-
firmwareVersion.isSerialConnected = updateTabData.serial_prompt;
215+
if (updateTabData.fw_version_current)
216+
firmwareVersion.isSerialConnected = updateTabData.serial_prompt;
217+
else
218+
firmwareVersion.isSerialConnected = false;
216219
if (!updateTab.visible)
217220
return ;
218221

0 commit comments

Comments
 (0)