mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 08:47:51 +00:00
Gcc12 related fixes (#1138)
* GCC12 related fixes but still compiles on GCC9 * Suppress warnings about volatile += * Enable c++20 if supported by the compiler On gcc12 we need to use -std=c++20 since constexpr .c_str() on std::string is only officially available since c++20 and the new gcc wouldnt let us use it with older standard * code format --------- Co-authored-by: Eisenberger Tamas <e.tamas@iwstudio.hu>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "utility.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
namespace jtag {
|
||||
namespace tap {
|
||||
|
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <array>
|
||||
|
||||
#include "baseband.hpp"
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#define __TONESETS_H__
|
||||
|
||||
#include <memory>
|
||||
#include <array>
|
||||
|
||||
#define TONES_SAMPLERATE 1536000
|
||||
#define TONES_DELTA_COEF(sr) ((1ULL << 32) / sr)
|
||||
|
@@ -60,6 +60,10 @@ class TransponderID {
|
||||
return id_;
|
||||
}
|
||||
|
||||
constexpr bool operator==(const TransponderID& other) const {
|
||||
return id_ == other.id_;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32_t id_;
|
||||
};
|
||||
|
Reference in New Issue
Block a user