rbaron / b-parasite

🌱💧 An open source DIY soil moisture sensor
1.93k stars 149 forks source link

Introduce CONFIG_BOARD_REVISION_CODE #140

Closed rbaron closed 1 year ago

rbaron commented 1 year ago

Beside having a CONFIG_BOARD_REVISION Kconfig string that represents our semantic versioning for board revisions, the ZigBee sample requires an integer representation of it. Instead of conditioning the integer version on the string version only for that sample and having to touch the ZigBee sample whenever we add a revision, I decided to have a board-wide config, so that both string and int versions live close to each other.

Additionally, we use that config for the ZigBee sample, so we can query the hw_version attribute from the Basic cluster.

Fixes #138.

Screenshot 2023-06-15 at 07 43 39