Skip to content

SPISettings no longer constexpr #2201

Closed

Description

@jgromes

Describe the bug
As discussed in #2191, the current SPISettings handling is incorrect, it should be made constexpr where applicable.

To Reproduce
Attempt to run something using SubGhz.spi_settings during object initialization, e.g. some RadioLib STM32WL Example.

Additional context
The recent changes to SPI library in 392469a introduced couple of issues. One was addressed by #2191, however, there is also a continued issue with constexpr being removed from SPISettings. To fix:

  1. d61ad83 (merged in fix(SubGhz): SPISettings not properly defined #2193) should be reverted
  2. SPISettings constructors should be made constexpr again, which will require removing init_AlwaysInline + init_MightInline and doing initialization in a simple constructor.

Activity

  1. added
    enhancement
    on Nov 23, 2023
  2. added this to the 2.7.1 milestone on Nov 23, 2023
  3. added 2 commits that reference this issue on Nov 24, 2023
    fe5f2f1
    ea70e88
  4. added
    bug 🐛
    on Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛enhancement

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions