Skip to content

Commit bc357ad

Browse files
committed
Disable AVR Nunchuk functionality to fix build
1 parent 82704b1 commit bc357ad

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

config/b0xx_r1/config.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setup() {
6161

6262
// Create Nunchuk input source - must be done before GPIO input source otherwise it would
6363
// disable the pullups on the i2c pins.
64-
static NunchukInput nunchuk;
64+
// static NunchukInput nunchuk;
6565

6666
// Create GPIO input source and use it to read button states for checking button holds.
6767
static GpioButtonInput gpio_input(button_mappings, button_count);
@@ -74,7 +74,10 @@ void setup() {
7474
}
7575

7676
// Create array of input sources to be used.
77-
static InputSource *input_sources[] = { &gpio_input, &nunchuk };
77+
static InputSource *input_sources[] = {
78+
&gpio_input,
79+
// &nunchuk,
80+
};
7881
size_t input_source_count = sizeof(input_sources) / sizeof(InputSource *);
7982

8083
backend_count =

config/b0xx_r2/config.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void setup() {
6363

6464
// Create Nunchuk input source - must be done before GPIO input source otherwise it would
6565
// disable the pullups on the i2c pins.
66-
static NunchukInput nunchuk;
66+
// static NunchukInput nunchuk;
6767

6868
// Create GPIO input source and use it to read button states for checking button holds.
6969
static GpioButtonInput gpio_input(button_mappings, button_count);
@@ -83,7 +83,10 @@ void setup() {
8383
digitalWrite(pinout.mux, HIGH);
8484

8585
// Create array of input sources to be used.
86-
static InputSource *input_sources[] = { &gpio_input, &nunchuk };
86+
static InputSource *input_sources[] = {
87+
&gpio_input,
88+
// &nunchuk,
89+
};
8790
size_t input_source_count = sizeof(input_sources) / sizeof(InputSource *);
8891

8992
backend_count =

0 commit comments

Comments
 (0)