forked from Akcelerometry_drgania_WMT/PI_mikrokontroler
Dodanie Captive Portal z logarytmami
This commit is contained in:
@@ -264,12 +264,22 @@ bool DataCapture::capture(uint32_t captureSeconds, const char *filename) {
|
||||
}
|
||||
|
||||
// Czekamy na dane z sensora
|
||||
uint32_t start_wait = millis();
|
||||
while (!adxl_.availableAll()) {
|
||||
if(isEscape()) break;
|
||||
if (isEscape()) break;
|
||||
if (millis() - start_wait > 500) {
|
||||
ESP_LOGE(TAG_CAPTURE, "Sensor data timeout - aborting capture.");
|
||||
measurementActive_ = false;
|
||||
break;
|
||||
}
|
||||
Watchdog::feed();
|
||||
yield();
|
||||
}
|
||||
|
||||
if (!measurementActive_) break;
|
||||
|
||||
const uint8_t got = adxl_.readAlignedOnce(X, Y, Z, TS);
|
||||
if (got != presentCnt) continue;
|
||||
if (got == 0 || got != presentCnt) continue;
|
||||
|
||||
// Wspólny timestamp ramki
|
||||
uint32_t tmin = UINT32_MAX;
|
||||
|
||||
Reference in New Issue
Block a user