Skip to content

Commit 708fc98

Browse files
committed
make reset operations public so Connection::new can be called.
1 parent a0752e6 commit 708fc98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7373
- Fixed a case where esplash transformed the firmware elf in a way that made it unbootable (#831)
7474
- The app descriptor is now correctly placed in the front of the bianry (#835)
7575
- espflash now extracts the MMU page size from the app descriptor (#835)
76-
- `ResetBeforeOperation` & `ResetAfterOperation` are now public, to allow the creation of a `Connection` (#882)
76+
- `ResetBeforeOperation` & `ResetAfterOperation` are now public, to allow the creation of a `Connection` (#895)
7777

7878
### Removed
7979

espflash/src/connection/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ use self::{
2323
encoder::SlipEncoder,
2424
reset::{
2525
ClassicReset,
26-
ResetAfterOperation,
27-
ResetBeforeOperation,
2826
ResetStrategy,
2927
UsbJtagSerialReset,
3028
construct_reset_strategy_sequence,
@@ -42,6 +40,8 @@ use crate::{
4240
pub(crate) mod command;
4341
pub(crate) mod reset;
4442

43+
pub use reset::{ResetAfterOperation, ResetBeforeOperation};
44+
4545
const MAX_CONNECT_ATTEMPTS: usize = 7;
4646
const MAX_SYNC_ATTEMPTS: usize = 5;
4747
const USB_SERIAL_JTAG_PID: u16 = 0x1001;

0 commit comments

Comments
 (0)