We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6ef16 commit a2a789bCopy full SHA for a2a789b
src/i2s/pdm.rs
@@ -1161,6 +1161,7 @@ pub(super) mod config {
1161
/// Convert this to the ESP-IDF SDK `i2s_pdm_tx_slot_config_t` type.
1162
#[cfg(not(esp_idf_version_major = "4"))]
1163
#[inline(always)]
1164
+ #[allow(clippy::needless_update)]
1165
pub(super) fn as_sdk(&self) -> i2s_pdm_tx_slot_config_t {
1166
i2s_pdm_tx_slot_config_t {
1167
data_bit_width: DataBitWidth::Bits16.as_sdk(),
@@ -1183,6 +1184,8 @@ pub(super) mod config {
1183
1184
sd_dither: self.sd_dither,
1185
#[cfg(esp_idf_soc_i2s_hw_version_2)]
1186
sd_dither2: self.sd_dither2,
1187
+ // i2s_pdm_data_fmt_t::I2S_PDM_DATA_FMT_PCM
1188
+ ..Default::default()
1189
}
1190
1191
0 commit comments