✏️ Fix pin debug ternary (#25832)

This commit is contained in:
lukasradek 2023-05-16 03:49:45 +02:00 committed by GitHub
parent 6e5f41fe6b
commit 48496dfec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@
// Active ADC function/mode/code values for PINSEL registers
constexpr int8_t ADC_pin_mode(pin_t pin) { return -1; }
int8_t get_pin_mode(const pin_t pin) { return VALID_PIN(pin) 0 : -1; }
int8_t get_pin_mode(const pin_t pin) { return VALID_PIN(pin) ? 0 : -1; }
bool GET_PINMODE(const pin_t pin) {
const int8_t pin_mode = get_pin_mode(pin);