keyboardio / Kaleidoscope-Bundle-Keyboardio

A Kaleidoscope distribution for the Keyboardio Model 01 and other keyboards.
Other
17 stars 24 forks source link

avr/boards: Add a compiler flag for the model01 to set the TWI buffer… #41

Closed algernon closed 3 years ago

algernon commented 3 years ago

… size

With a recent change in Kaleidoscope, the kaleidoscope::driver::keyboardio::Model01Side driver now uses the twi implementation also used by the Keyboardio Imago. This sets the default buffer length to 192, and we need to override that here.

We need the override here, because it is used by twi.c, so it needs to be defined when compiling said file in isolation.

The practical consequence of this is that Model01 builds will use 160 bytes less SRAM with this change.