Skip to content

Commit

Permalink
Merge pull request #148 from taks/fix-esp-idf-v5.2.2
Browse files Browse the repository at this point in the history
Fix ESP-IDF v5.2.2 build
  • Loading branch information
taks authored Oct 25, 2024
2 parents abc51b8 + 980873d commit 84f3f47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ fn main() {
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_minor, values(\"2\"))");
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_patch, values(\"0\"))");
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_patch, values(\"1\"))");
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_patch, values(\"2\"))");
}
2 changes: 1 addition & 1 deletion src/server/ble_characteristic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cfg_if::cfg_if! {
if #[cfg(all(
esp_idf_version_major = "5",
esp_idf_version_minor = "2",
not(any(esp_idf_version_patch = "0", esp_idf_version_patch = "1"))
not(any(esp_idf_version_patch = "0", esp_idf_version_patch = "1", esp_idf_version_patch="2"))
))] {
type NotifyTxType = esp_idf_sys::ble_gap_event__bindgen_ty_1__bindgen_ty_12;
type Subscribe = esp_idf_sys::ble_gap_event__bindgen_ty_1__bindgen_ty_13;
Expand Down

0 comments on commit 84f3f47

Please sign in to comment.