We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e860c commit cc2855dCopy full SHA for cc2855d
hal_st/stm32fxxx/DigitalToAnalogPinStm.hpp
@@ -21,10 +21,9 @@ namespace hal
21
public:
22
#if defined(DAC_CHIPCONNECT_BOTH)
23
// clang-format off
24
- static const struct Internal{} internal;
25
- static const struct External{} external;
26
- static const struct Both{} both;
27
-
+ static constexpr struct Internal{} internal{};
+ static constexpr struct External{} external{};
+ static constexpr struct Both{} both{};
28
// clang-format on
29
30
enum struct Channel : uint32_t
@@ -66,7 +65,7 @@ namespace hal
66
65
friend class DigitalToAnalogPinImplStm;
67
68
uint8_t index;
69
- DAC_HandleTypeDef handle;
+ DAC_HandleTypeDef handle{};
70
};
71
}
72
0 commit comments