shared-bindings: Fix incorrect code comments

Most likely caused by copy-paste.
This commit is contained in:
arturo182 2018-02-06 22:03:17 +01:00
parent 243279fdc3
commit ff041caa52
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ STATIC mp_obj_t audiobusio_pdmin_make_new(const mp_obj_type_t *type, size_t n_ar
//| .. method:: deinit() //| .. method:: deinit()
//| //|
//| Deinitialises the PWMOut and releases any hardware resources for reuse. //| Deinitialises the PDMIn and releases any hardware resources for reuse.
//| //|
STATIC mp_obj_t audiobusio_pdmin_deinit(mp_obj_t self_in) { STATIC mp_obj_t audiobusio_pdmin_deinit(mp_obj_t self_in) {
audiobusio_pdmin_obj_t *self = MP_OBJ_TO_PTR(self_in); audiobusio_pdmin_obj_t *self = MP_OBJ_TO_PTR(self_in);

View File

@ -101,7 +101,7 @@ STATIC mp_obj_t audioio_audioout_make_new(const mp_obj_type_t *type, size_t n_ar
// We explicitly don't check whether the pin is free because multiple // We explicitly don't check whether the pin is free because multiple
// AudioOuts may share it. // AudioOuts may share it.
// create PWM object from the given pin // create AudioOut object from the given pin
audioio_audioout_obj_t *self = m_new_obj(audioio_audioout_obj_t); audioio_audioout_obj_t *self = m_new_obj(audioio_audioout_obj_t);
self->base.type = &audioio_audioout_type; self->base.type = &audioio_audioout_type;
mp_buffer_info_t bufinfo; mp_buffer_info_t bufinfo;
@ -124,7 +124,7 @@ STATIC mp_obj_t audioio_audioout_make_new(const mp_obj_type_t *type, size_t n_ar
//| .. method:: deinit() //| .. method:: deinit()
//| //|
//| Deinitialises the PWMOut and releases any hardware resources for reuse. //| Deinitialises the AudioOut and releases any hardware resources for reuse.
//| //|
STATIC mp_obj_t audioio_audioout_deinit(mp_obj_t self_in) { STATIC mp_obj_t audioio_audioout_deinit(mp_obj_t self_in) {
audioio_audioout_obj_t *self = MP_OBJ_TO_PTR(self_in); audioio_audioout_obj_t *self = MP_OBJ_TO_PTR(self_in);