Skip to content

Commit

Permalink
add const to direct pins array if appropriate, for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Jul 4, 2021
1 parent 2ae66f6 commit 1e2119a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif

#ifdef DIRECT_PINS
# ifdef DIRECT_PINS_RIGHT
static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS;
# else
static const pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS;
# endif
#elif (DIODE_DIRECTION == ROW2COL) || (DIODE_DIRECTION == COL2ROW)
# ifdef MATRIX_ROW_PINS
# ifdef MATRIX_ROW_PINS_RIGHT
Expand Down

0 comments on commit 1e2119a

Please sign in to comment.