AnsweredAssumed Answered

How to use const or enum in struct?

Question asked by Aaron Lee on Oct 19, 2019
Latest reply on Oct 23, 2019 by Aaron Lee

Hi,

How to use const in struct?

struct SDCardState

{

   const uint16_t initTimeout=2000;

 

   enum uint8_t CardType {

      CardTypeSD1,

      CardTypeSD2,

      CardTypeSDHC,

   }

}

We got a error as follow:

';' expected 

Best Regard,

Aaron

Outcomes