Skip to content

Commit

Permalink
minor fixes to complete build --
Browse files Browse the repository at this point in the history
Only show Autocorrect enable when RGB MATRIX enabled.
  • Loading branch information
plodah committed Aug 14, 2024
1 parent 4e18a72 commit e03f082
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions users/plodah/functions/mods_on_knob.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ void enc_prs_act(bool ctl_pressed, bool sft_pressed, bool alt_pressed) {
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 1)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_toggle();
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 0)
&& (current_layer != 0)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_toggle();
}
Expand Down Expand Up @@ -101,14 +105,18 @@ void enc_ccw_act(bool ctl_pressed, bool sft_pressed, bool alt_pressed) {
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 1)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_decrease_sat();
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 0)
&& (current_layer != 0)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_decrease_val();
}
Expand Down Expand Up @@ -158,14 +166,18 @@ void enc_cw_act(bool ctl_pressed, bool sft_pressed, bool alt_pressed) {
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 1)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_increase_sat();
}
else if (
((current_layer + PLODAH_LAYEROFFSET) % 2 == 0)
&& (current_layer != 0)
# if defined(PLODAH_BORING_LAYER)
&& (current_layer != PLODAH_BORING_LAYER)
# endif // PLODAH_BORING_LAYER
) {
rgb_matrix_increase_val();
}
Expand Down
10 changes: 5 additions & 5 deletions users/plodah/plodah.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
//=======================//
// AUTOCORRECT //
//=======================//
#if defined(AUTOCORRECT_ENABLE)
#if defined(AUTOCORRECT_ENABLE) && defined(RGB_MATRIX_ENABLE)
# include "functions/autocorrect_indicator.c"
#endif // AUTOCORRECT_ENABLE
#endif // AUTOCORRECT_ENABLE && RGB_MATRIX_ENABLE

//====================//
// TAPDANCE //
Expand Down Expand Up @@ -82,10 +82,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
void matrix_scan_user(void) {
# if defined(PLODAH_ALTTAB_ENHANCEMENTS_ENABLE)
plodah_alttab_check();
# endif //PLODAH_ALTTAB_ENHANCEMENTS_ENABLE
# if defined(AUTOCORRECT_ENABLE)
# endif // PLODAH_ALTTAB_ENHANCEMENTS_ENABLE
# if defined(AUTOCORRECT_ENABLE) && defined(RGB_MATRIX_ENABLE)
plodah_autocorrect_indicator_check();
# endif //AUTOCORRECT_ENABLE
# endif // AUTOCORRECT_ENABLE && RGB_MATRIX_ENABLE
}

//==========================//
Expand Down

0 comments on commit e03f082

Please sign in to comment.