aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/pybpin.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mods/pybpin.c')
-rw-r--r--cc3200/mods/pybpin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cc3200/mods/pybpin.c b/cc3200/mods/pybpin.c
index 2cbd61535..b8db31941 100644
--- a/cc3200/mods/pybpin.c
+++ b/cc3200/mods/pybpin.c
@@ -199,13 +199,10 @@ void pin_verify_af (uint af) {
void pin_config (pin_obj_t *self, uint af, uint mode, uint type, uint strength) {
// configure the pin in analog mode
- self->af = af;
- self->mode = mode;
- self->type = type;
- self->strength = strength;
+ self->af = af, self->mode = mode, self->type = type, self->strength = strength;
pin_obj_configure ((const pin_obj_t *)self);
// mark the pin as used
- self->used = true;
+ self->isused = true;
// register it with the sleep module
pybsleep_add ((const mp_obj_t)self, (WakeUpCB_t)pin_obj_configure);
}