diff options
| author | Damien George | 2014-04-20 00:16:30 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-20 00:16:30 +0100 |
| commit | d689430e790bfbd40a4fc3139b118aee5576baf7 (patch) | |
| tree | e25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/adc.c | |
| parent | c7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff) | |
stmhal: Add SPI class.
Also some updates to compile with latest changes to core py.
Diffstat (limited to 'stmhal/adc.c')
| -rw-r--r-- | stmhal/adc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/adc.c b/stmhal/adc.c index f03017ab4..d7d2cf089 100644 --- a/stmhal/adc.c +++ b/stmhal/adc.c @@ -120,7 +120,7 @@ STATIC void adc_print(void (*print)(void *env, const char *fmt, ...), void *env, STATIC mp_obj_t adc_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { // check number of arguments - mp_check_nargs(n_args, 1, 1, n_kw, false); + mp_arg_check_num(n_args, n_kw, 1, 1, false); // 1st argument is the pin name mp_obj_t pin_obj = args[0]; @@ -322,7 +322,7 @@ float adc_read_core_vref(ADC_HandleTypeDef *adcHandle) { STATIC mp_obj_t adc_all_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { // check number of arguments - mp_check_nargs(n_args, 1, 1, n_kw, false); + mp_arg_check_num(n_args, n_kw, 1, 1, false); // make ADCAll object pyb_adc_all_obj_t *o = m_new_obj(pyb_adc_all_obj_t); |
