Fix UploadManager CSV bottleneck and measure() race condition

This commit is contained in:
2026-05-10 19:14:24 +02:00
parent 10d187eb37
commit 382433b91f
11 changed files with 58 additions and 242 deletions

View File

@@ -6,6 +6,8 @@
class ADXL345FastSPI {
public:
static constexpr uint8_t MAX_SENSORS = 4; // Maksymalna liczba ADXL345
enum Rate { RATE_100HZ, RATE_200HZ, RATE_400HZ, RATE_800HZ, RATE_1600HZ, RATE_3200HZ };
enum Range { RANGE_2G, RANGE_4G, RANGE_8G, RANGE_16G };
@@ -56,7 +58,7 @@ public:
uint8_t refreshActiveMask();
private:
static constexpr uint8_t MAX_NUM = 4; // MAX Ilość ADXL345
static constexpr uint8_t MAX_NUM = MAX_SENSORS;
SPIClass* spi_ = &SPI;
ADXL345FreshSPI dev_[MAX_NUM];