Skip to content

Commit

Permalink
Merge pull request #62 from DNedic/change_baudrate_delay_change
Browse files Browse the repository at this point in the history
Change the ChangeBaudrate command delay to match the esptool stub
  • Loading branch information
SergioGasquez authored May 31, 2024
2 parents 5a1e91b + a45dde0 commit c3d1dc4
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 c3d1dc4

Please sign in to comment.