Skip to content

Commit 68d2178

Browse files
committed
Fix support for M7350 v6
1 parent 1cf6f5d commit 68d2178

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

installer/src/tplink.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,16 @@ pub async fn start_telnet(admin_ip: &str) -> Result<bool, Error> {
8585
anyhow::bail!("Bad result code when trying to reset the language: {result}");
8686
}
8787

88-
println!("Detected hardware revision v3");
88+
// Final check. On v6, all of the above steps succeed, but telnet may still not be launched.
89+
sleep(Duration::from_millis(1000)).await;
90+
if telnet_send_command(addr, "true", "exit code 0", true)
91+
.await
92+
.is_err()
93+
{
94+
continue;
95+
}
96+
97+
println!("Detected hardware revision v3, successfully opened telnet");
8998
return Ok(true);
9099
}
91100

0 commit comments

Comments
 (0)