This removes the `magic` field from the beginning of the header. It was originally meant to signal if the EEPROM we're dealing with is new, or if it has been set up with `EEPROMSettings` before. But as `EEPROMSettings` is pretty much the only way we deal with EEPROM, there's not much need for that. With the removal, we do need a way to update the CRC bits on first use, so we use the `version` field instead: if it is `0xff`, we update the CRC, and consider the settings valid. This means that until the version is set, the EEPROM layout is considered flexible, and verification is essentially disabled. Once the version is set, we can validate. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/365/head
parent
5edc8a07b2
commit
3541322559
Loading…
Reference in new issue