From c35cc63366a924b818eaaf4f0bd1c11eeb236d79 Mon Sep 17 00:00:00 2001 From: robert-hh Date: Sat, 4 Nov 2023 19:00:56 +0100 Subject: [PATCH] samd/pin_af: Fix a typo in a conditional compile. Thanks to @ricksorensen for finding it. Signed-off-by: robert-hh --- ports/samd/pin_af.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/samd/pin_af.c b/ports/samd/pin_af.c index ca11e3b7a8f3..a73c6591dd9a 100644 --- a/ports/samd/pin_af.c +++ b/ports/samd/pin_af.c @@ -112,7 +112,7 @@ adc_config_t get_adc_config(int pin_id, int32_t flag) { const machine_pin_obj_t *pct_ptr = pin_find_by_id(pin_id); if (pct_ptr->adc0 != 0xff && (flag & (1 << pct_ptr->adc0)) == 0) { return (adc_config_t) {0, pct_ptr->adc0}; - #if defined(MUC_SAMD51) + #if defined(MCU_SAMD51) } else if (pct_ptr->adc1 != 0xff && (flag & (1 << (pct_ptr->adc1 + 16))) == 0) { return (adc_config_t) {1, pct_ptr->adc1}; #endif