From 728f98dc07506210598fa4a0a3b5af16114a1617 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Wed, 11 Jan 2017 17:29:15 +0100 Subject: [PATCH] nrf5/adc: Updating module to compile. --- nrf5/adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrf5/adc.c b/nrf5/adc.c index aa1f27be6e..79c8bc7104 100644 --- a/nrf5/adc.c +++ b/nrf5/adc.c @@ -44,15 +44,15 @@ typedef struct _machine_adc_obj_t { /* MicroPython bindings for machine API */ STATIC mp_obj_t machine_adc_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) { - return MP_OBJ_FROM_PTR(self); + return mp_const_none; } const mp_obj_type_t machine_adc_type = { { &mp_type_type }, .name = MP_QSTR_ADC, + .make_new = machine_adc_make_new, #if 0 .print = adc_print, - .make_new = machine_adc_make_new, .locals_dict = (mp_obj_t)&machine_adc_locals_dict #endif };