Skip to content

Commit eb60126

Browse files
committed
not constexpr enough for C++14?
1 parent cda1dba commit eb60126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/nRF5/Tone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ constexpr static uint64_t _calculate_pulse_count(uint32_t frequency, uint32_t du
111111
(duration / 1000ULL) * frequency :
112112
(((uint64_t)duration) * frequency / 1000ULL);
113113
};
114-
constexpr static int _bits_used(unsigned long x) {
114+
static int _bits_used(unsigned long x) {
115115
if (0 == x) return 0;
116116
unsigned int result = 0;
117117
do {
118118
result++;
119119
} while (x >>= 1);
120120
return result;
121121
}
122-
constexpr static int _bits_used(unsigned long long x) {
122+
static int _bits_used(unsigned long long x) {
123123
if (0 == x) return 0;
124124
unsigned int result = 0;
125125
do {

0 commit comments

Comments
 (0)