Skip to content

Commit

Permalink
Change the ChangeBaudrate command delay to match the esptool stub
Browse files Browse the repository at this point in the history
  • Loading branch information
DNedic committed May 30, 2024
1 parent 5a1e91b commit a45dde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ impl<T: InputIO> Stub<T> {
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;
Expand Down

0 comments on commit a45dde0

Please sign in to comment.