From a45dde06fd81ce3a98c7dff72587f7d5ba196acf Mon Sep 17 00:00:00 2001 From: Djordje Nedic Date: Thu, 30 May 2024 14:39:58 +0200 Subject: [PATCH] Change the ChangeBaudrate command delay to match the esptool stub --- src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.rs b/src/protocol.rs index dc772ac..481a101 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -446,7 +446,7 @@ impl Stub { ChangeBaudrate => { let baud: ChangeBaudrateCommand = slice_to_struct(payload)?; self.send_response(response); - self.target.delay_us(15_000); // Wait for response to be transfered + self.target.delay_us(10_000); // Wait for response to be transfered self.target.change_baudrate(baud.old, baud.new); self.target.delay_us(1_000); response_sent = true;