File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
ports/mimxrt10xx/common-hal/audiobusio
shared-bindings/audiobusio Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,12 @@ void common_hal_audiobusio_i2sout_deinit(audiobusio_i2sout_obj_t *self) {
131
131
common_hal_reset_pin (self -> data );
132
132
self -> data = NULL ;
133
133
134
- IOMUXC_GPR -> GPR1 &= ~(IOMUXC_GPR_GPR1_SAI1_MCLK_DIR_MASK << (self -> instance - 1 ));
134
+ if (self -> mclk != NULL ) {
135
+ IOMUXC_GPR -> GPR1 &= ~(IOMUXC_GPR_GPR1_SAI1_MCLK_DIR_MASK << (self -> instance - 1 ));
135
136
136
- common_hal_reset_pin (self -> mclk );
137
- self -> mclk = NULL ;
137
+ common_hal_reset_pin (self -> mclk );
138
+ self -> mclk = NULL ;
139
+ }
138
140
}
139
141
140
142
void common_hal_audiobusio_i2sout_play (audiobusio_i2sout_obj_t * self ,
Original file line number Diff line number Diff line change 44
44
//| word_select: microcontroller.Pin,
45
45
//| data: microcontroller.Pin,
46
46
//| *,
47
- //| main_clock: microcontroller.Pin = None,
47
+ //| main_clock: Optional[ microcontroller.Pin] = None,
48
48
//| left_justified: bool = False
49
49
//| ) -> None:
50
50
//| """Create a I2SOut object associated with the given pins.
You can’t perform that action at this time.
0 commit comments