Skip to content

Commit a2a789b

Browse files
committed
Compat with ESP IDF master
1 parent 7c6ef16 commit a2a789b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/i2s/pdm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ pub(super) mod config {
11611161
/// Convert this to the ESP-IDF SDK `i2s_pdm_tx_slot_config_t` type.
11621162
#[cfg(not(esp_idf_version_major = "4"))]
11631163
#[inline(always)]
1164+
#[allow(clippy::needless_update)]
11641165
pub(super) fn as_sdk(&self) -> i2s_pdm_tx_slot_config_t {
11651166
i2s_pdm_tx_slot_config_t {
11661167
data_bit_width: DataBitWidth::Bits16.as_sdk(),
@@ -1183,6 +1184,8 @@ pub(super) mod config {
11831184
sd_dither: self.sd_dither,
11841185
#[cfg(esp_idf_soc_i2s_hw_version_2)]
11851186
sd_dither2: self.sd_dither2,
1187+
// i2s_pdm_data_fmt_t::I2S_PDM_DATA_FMT_PCM
1188+
..Default::default()
11861189
}
11871190
}
11881191
}

0 commit comments

Comments
 (0)