diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-27 15:36:53 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-28 10:33:03 +1100 |
commit | 69661f3343bedf86e514337cff63d96cc42f8859 (patch) | |
tree | af5dfb380ffdb75dda84828f63cf9d840d992f0f /ports/esp8266/machine_adc.c | |
parent | 3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (diff) |
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
Diffstat (limited to 'ports/esp8266/machine_adc.c')
-rw-r--r-- | ports/esp8266/machine_adc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ports/esp8266/machine_adc.c b/ports/esp8266/machine_adc.c index 231823925..b0b458acd 100644 --- a/ports/esp8266/machine_adc.c +++ b/ports/esp8266/machine_adc.c @@ -59,12 +59,12 @@ mp_obj_t machine_adc_make_new(const mp_obj_type_t *type_in, size_t n_args, size_ mp_int_t chn = mp_obj_get_int(args[0]); switch (chn) { - case 0: - return &machine_adc_adc; - case 1: - return &machine_adc_vdd3; - default: - mp_raise_msg_varg(&mp_type_ValueError, "ADC(%d) doesn't exist", chn); + case 0: + return &machine_adc_adc; + case 1: + return &machine_adc_vdd3; + default: + mp_raise_msg_varg(&mp_type_ValueError, "ADC(%d) doesn't exist", chn); } } @@ -94,5 +94,5 @@ const mp_obj_type_t machine_adc_type = { .name = MP_QSTR_ADC, .print = machine_adc_print, .make_new = machine_adc_make_new, - .locals_dict = (mp_obj_dict_t*)&machine_adc_locals_dict, + .locals_dict = (mp_obj_dict_t *)&machine_adc_locals_dict, }; |