From 01887c9b585e5e244fa6e7ac9bfbf3fc3c3f3d71 Mon Sep 17 00:00:00 2001 From: skullY Date: Tue, 8 Aug 2017 14:28:20 -0700 Subject: [PATCH] tweak the return statement --- keyboards/teensy_lc_synth/matrix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/teensy_lc_synth/matrix.c b/keyboards/teensy_lc_synth/matrix.c index b8bbe5a7..deaad5ab 100644 --- a/keyboards/teensy_lc_synth/matrix.c +++ b/keyboards/teensy_lc_synth/matrix.c @@ -144,9 +144,9 @@ static matrix_row_t read_cols(void) { printf("pin16:%d, ", (palReadPad(TEENSY_PIN16_IOPORT, TEENSY_PIN16)==PAL_LOW)<<2); printf("pin11:%d\n", (palReadPad(TEENSY_PIN11_IOPORT, TEENSY_PIN11)==PAL_LOW)<<3); - return (palReadPad(TEENSY_PIN14_IOPORT, TEENSY_PIN14)==PAL_LOW) ? 0 : (1<<0) && \ - (palReadPad(TEENSY_PIN15_IOPORT, TEENSY_PIN15)==PAL_LOW) ? 0 : (1<<1) && \ - (palReadPad(TEENSY_PIN16_IOPORT, TEENSY_PIN16)==PAL_LOW) ? 0 : (1<<2) && \ + return (palReadPad(TEENSY_PIN14_IOPORT, TEENSY_PIN14)==PAL_LOW) ? 0 : (1<<0) || + (palReadPad(TEENSY_PIN15_IOPORT, TEENSY_PIN15)==PAL_LOW) ? 0 : (1<<1) || + (palReadPad(TEENSY_PIN16_IOPORT, TEENSY_PIN16)==PAL_LOW) ? 0 : (1<<2) || (palReadPad(TEENSY_PIN11_IOPORT, TEENSY_PIN11)==PAL_LOW) ? 0 : (1<<3); }