summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2020-08-18 11:42:06 -0400
committerLucian Copeland <hierophect@gmail.com>2020-08-18 11:42:06 -0400
commitda75445cd58d0fbf72c6b323b1b0bd53197f9cf3 (patch)
tree8cea954b6bc6ce3a2949f57c24d3459a6ddfcd51 /shared-bindings
parentd0d6a951da9ef39f68a0d118db6c22c7e4ec9b2b (diff)
Style changes, reposition runtime errors
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/pulseio/PulseOut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/pulseio/PulseOut.c b/shared-bindings/pulseio/PulseOut.c
index 2adbc3cf6..3fd722558 100644
--- a/shared-bindings/pulseio/PulseOut.c
+++ b/shared-bindings/pulseio/PulseOut.c
@@ -71,11 +71,11 @@ STATIC mp_obj_t pulseio_pulseout_make_new(const mp_obj_type_t *type, size_t n_ar
mp_obj_t carrier_obj = pos_args[0];
if (MP_OBJ_IS_TYPE(carrier_obj, &pulseio_pwmout_type)) {
- // PWM Carrier
+ // Use a PWMOut Carrier
mp_arg_check_num(n_args, kw_args, 1, 1, false);
common_hal_pulseio_pulseout_construct(self, (pulseio_pwmout_obj_t *)MP_OBJ_TO_PTR(carrier_obj), NULL, 0, 0);
} else {
- // Pin and Frequency
+ // Use a Pin, frequency, and duty cycle
enum { ARG_pin, ARG_frequency};
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_pin, MP_ARG_REQUIRED | MP_ARG_OBJ },