Skip to content

Commit 23bffd5

Browse files
replaced broken if blocks with simple {{ mcu }} variables
1 parent c809975 commit 23bffd5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
{% if mcu == "esp32" -%}
10-
{{ mcu }}-hal = { version = "0.7.0", optional = true }
9+
esp8266-hal = { version = "0.5.1", optional = true}
10+
esp32-hal = { version = "0.7.0", optional = true }
1111
esp-backtrace = { version = "0.4.0", features = ["{{ mcu }}", "panic-handler", "print-uart"], optional = true }
12-
{% else -%}
13-
{{ mcu }}-hal = { version = "0.5.1", optional = true}
1412

1513
esp-println = { version = "0.3.1", features = ["{{ mcu }}"]}
1614
xtensa-lx-rt = { version = "0.14.0", features = ["{{ mcu }}"], optional = true}

cargo-generate.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ ignore = [
99
[placeholders.mcu]
1010
type = "string"
1111
prompt = "Which MCU to target?"
12-
choices = ["esp8266", "esp32"]
12+
choices = ["esp32", "esp8266"]
1313
default = "esp32"

0 commit comments

Comments
 (0)