File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 12
12
- " **/ci.yml"
13
13
- " **/*.md"
14
14
workflow_dispatch :
15
-
15
+ inputs :
16
+ repository :
17
+ description : " Owner and repository to test"
18
+ required : true
19
+ default : ' esp-rs/espflash'
20
+ branch :
21
+ description : " Branch, tag or SHA to checkout."
22
+ required : true
23
+ default : " main"
16
24
env :
17
25
CARGO_TERM_COLOR : always
18
26
31
39
runs-on : ubuntu-20.04
32
40
steps :
33
41
- uses : actions/checkout@v4
42
+ if : github.event_name != 'workflow_dispatch'
43
+
44
+ - uses : actions/checkout@v4
45
+ if : github.event_name == 'workflow_dispatch'
46
+ with :
47
+ repository : ${{ github.event.inputs.repository }}
48
+ ref : ${{ github.event.inputs.branch }}
34
49
35
50
- uses : ./.github/actions/setup-target
36
51
with :
Original file line number Diff line number Diff line change 1
1
use std:: { collections:: HashMap , ops:: Range } ;
2
2
3
+ use log:: debug;
4
+
3
5
#[ cfg( feature = "serialport" ) ]
4
6
use crate :: { connection:: Connection , targets:: bytes_to_mac_addr} ;
5
7
use crate :: {
@@ -95,11 +97,11 @@ impl Target for Esp32c2 {
95
97
) -> Result < IdfBootloaderFormat < ' a > , Error > {
96
98
let booloader: & ' static [ u8 ] = match xtal_freq {
97
99
XtalFrequency :: _40Mhz => {
98
- println ! ( "Using 40MHz bootloader" ) ;
100
+ debug ! ( "Using 40MHz bootloader" ) ;
99
101
include_bytes ! ( "../../resources/bootloaders/esp32c2-bootloader.bin" )
100
102
}
101
103
XtalFrequency :: _26Mhz => {
102
- println ! ( "Using 26MHz bootloader" ) ;
104
+ debug ! ( "Using 26MHz bootloader" ) ;
103
105
include_bytes ! ( "../../resources/bootloaders/esp32c2_26-bootloader.bin" )
104
106
}
105
107
_ => {
You can’t perform that action at this time.
0 commit comments