mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-02 14:34:18 +01:00
Generic way to find out which units the magnitude type supports. Clean-up UI related to temperature, energy and power units. Resolves #2482 Also apply some refactoring to the 'schema'-generated payloads by using the EnumerableConfig helper class. Class received some new features: - optional callback, verifying that index should be used at all specific use-case is magnitudes list that needs only 'counted' ones - std::iota / ranges::iota_view -like helper object for sequences starting with something other than 0 Reordered payloads, prefer queueing over sending everything at once.