Skip to content

Commit

Permalink
feat: Update ChangeBaudrate processing (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez authored Mar 5, 2024
1 parent 6b72fff commit cdb1a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,9 @@ impl<T: InputIO> Stub<T> {
ChangeBaudrate => {
let baud: ChangeBaudrateCommand = slice_to_struct(payload)?;
self.send_response(response);
self.target.delay_us(10_000); // Wait for response to be transfered
self.target.delay_us(15_000); // Wait for response to be transfered
self.target.change_baudrate(baud.old, baud.new);
self.send_greeting();
self.target.delay_us(1_000);
response_sent = true;
}
EraseFlash => self.target.erase_flash()?,
Expand Down

0 comments on commit cdb1a67

Please sign in to comment.