Skip to content

Commit

Permalink
Compat with ESP IDF master
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Dec 23, 2024
1 parent 53f4437 commit 7c6ef16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,21 @@ pub mod config {
tseg_1: timing_segment_1,
tseg_2: timing_segment_2,
sjw: synchronization_jump_width,
#[cfg(
any(esp_idf_version_major = "4"),
#[cfg(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version = "5.2",
esp_idf_version = "5.3"
)]
))]
triple_sampling,
#[cfg(not(
any(esp_idf_version_major = "4"),
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version = "5.2",
esp_idf_version = "5.3"
))]
)))]
__bindgen_anon_1: twai_timing_config_t__bindgen_ty_1 { triple_sampling },
..Default::default()
},
Expand Down

0 comments on commit 7c6ef16

Please sign in to comment.