Skip to content

Commit a2c463d

Browse files
authored
Update AudioOut.c
fiiiiiiiiiiiiiiiiiiiiiiiiix
1 parent 7187132 commit a2c463d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atmel-samd/common-hal/audioio/AudioOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void shared_construct(audioio_audioout_obj_t* self, const mcu_pin_obj_t*
194194

195195
// Connect the DAC to DMA
196196
dac_event = gc_alloc(sizeof(struct events_resource), false);
197-
if (tc_event == NULL) {
197+
if (dac_event == NULL) {
198198
common_hal_audioio_audioout_deinit(self);
199199
mp_raise_msg(&mp_type_MemoryError, "");
200200
}

0 commit comments

Comments
 (0)