Skip to main content
6 events
when toggle format what by license comment
Nov 14, 2019 at 16:32 vote accept LukasFun
Nov 14, 2019 at 15:14 vote accept LukasFun
Nov 14, 2019 at 15:18
Nov 11, 2019 at 16:41 comment added Peter Paul Kiefer @LukasFun You can define a constant in the header and use this to initialize the static member in the cpp File. You can also use this constant in the sketch at compile time. But that would be a worse solution (IMHO at least).
Nov 11, 2019 at 16:41 comment added Majenko The answer is "Just do it this way since this is the right way to do it as you have a static const integral type"
Nov 11, 2019 at 16:34 comment added LukasFun So the answer is "Just do it this way, even though the initialization is not in the .cpp file as with everything else"? Or is there any other way?
Nov 11, 2019 at 16:31 history answered Majenko CC BY-SA 4.0