Skip to content

Commit

Permalink
samd/pin_af: Fix a typo in a conditional compile.
Browse files Browse the repository at this point in the history
Thanks to @ricksorensen for finding it.

Signed-off-by: robert-hh <robert@hammelrath.com>
  • Loading branch information
robert-hh authored and dpgeorge committed Nov 6, 2023
1 parent 59afeb0 commit c35cc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/samd/pin_af.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c35cc63

Please sign in to comment.