summaryrefslogtreecommitdiff
path: root/keyboards/keebio/sinc/sinc.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/sinc/sinc.c')
-rw-r--r--keyboards/keebio/sinc/sinc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/keebio/sinc/sinc.c b/keyboards/keebio/sinc/sinc.c
index f6dff42ebb..9b2f6da512 100644
--- a/keyboards/keebio/sinc/sinc.c
+++ b/keyboards/keebio/sinc/sinc.c
@@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "sinc.h"
#include "split_util.h"
+#ifdef BACKLIGHT_ENABLE
bool led_update_kb(led_t led_state) {
if (!led_update_user(led_state)) { return false; }
// Only update if left half
@@ -25,6 +26,7 @@ bool led_update_kb(led_t led_state) {
}
return true;
}
+#endif
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE
@@ -35,6 +37,7 @@ void eeconfig_init_kb(void) {
eeconfig_init_user();
}
+#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) {
@@ -52,3 +55,4 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
}
return true;
}
+#endif