# \[solved\] Adding an new layer breaks Model 01’s firmware

**URL:** <https://community.keyboard.io/t/solved-adding-an-new-layer-breaks-model-01-s-firmware/5220>\
**Category:** Programming\
**Tags:** question\
**Created:** [March 3, 2022, 7:23am UTC](https://community.keyboard.io/t/solved-adding-an-new-layer-breaks-model-01-s-firmware/5220 "2022-03-03T07:23:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hook](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/hook/32/2901_2.png) [@hook](https://community.keyboard.io/u/hook)\
**Post date:** [March 3, 2022, 7:23am UTC](https://community.keyboard.io/t/solved-adding-an-new-layer-breaks-model-01-s-firmware/5220/1 "2022-03-03T07:23:23Z")

</div>

After finally finding the time to apply the fixes as kindly described in [this thread](https://community.keyboard.io/t/firmware-stops-compiling-after-i-upgrade-kaleidoscope-in-arduino-ide/4673), I started playing around with my Model 01’s firmware again.

Then I run into the following problem, which I don’t understand:

```auto
Arduino: 1.8.19 (Linux), Board: "Keyboardio Model 01"

Model01-Firmware:313:1: error: macro "PER_KEY_DATA_STACKED" requires 66 arguments, but only 64 given
 ) // KEYMAPS(
 ^
exit status 1
macro "PER_KEY_DATA_STACKED" requires 66 arguments, but only 64 given

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

```

also:

`Invalid library found in /home/hook/.arduino15/packages/keyboardio/hardware/avr/2022.2.19183125/libraries/Kaleidoscope-LEDControl: no headers files (.h) found in /home/hook/.arduino15/packages/keyboardio/hardware/avr/2022.2.19183125/libraries/Kaleidoscope-LEDControl`

Given the number, I counted the entries of keys in my newly added layer, but all the other layers also have 64 keys. So that’s not it.

This is the version that works:

> <https://gitlab.com/slon-keyboard/keyboardio-model01-slon/-/blob/a7f068e4b248093f9dc426535a159cce18db54b3/Model01-Firmware.ino>

And this is the commit that breaks it:

> **[Add an explicit Neo2 layer (4a45c71a) · Commits · Slon – Slovenian ergonomic...](https://gitlab.com/slon-keyboard/keyboardio-model01-slon/-/commit/4a45c71a981cac996d46b9c803025d81424c8d1c)**
>
> Preparing to fix https://gitlab.com/slon-keyboard/keyboardio-model01-slon/-/issues/6 Currently does not work

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![hook](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/hook/32/2901_2.png) [@hook](https://community.keyboard.io/u/hook)\
**Post date:** [March 3, 2022, 2:33pm UTC](https://community.keyboard.io/t/solved-adding-an-new-layer-breaks-model-01-s-firmware/5220/2 "2022-03-03T14:33:15Z")

</div>

Managed to fix it. There was a silly typo. Fixed now in

> **[Fix explicit Neo layer (1995615e) · Commits · Slon – Slovenian ergonomic...](https://gitlab.com/slon-keyboard/keyboardio-model01-slon/-/commit/1995615efec1fa365b2ab1495c897472222e1c03)**
>
> Slon is an ergonomic keyboard layout optimised primarily for the Slovenian language, but taking other languages into account as well. This repository includes the firmware implementing...
