pull/131/merge
Christian Muehlhaeuser 2025-12-18 00:22:12 +01:00 committed by GitHub
commit 2612b01ce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 17 deletions

View File

@ -505,6 +505,12 @@ void System_TaskCaptureAndSendPhoto(void *pvParameters) {
TickType_t xLastWakeTime = xTaskGetTickCount();
while (1) {
/* Pause periodic snapshots while MJPG stream is active */
if (SystemCamera.GetStreamStatus()) {
SystemLog.AddEvent(LogLevel_Verbose, F("Photo processing task: stream active, pausing periodic snapshots"));
/* do not increase the sending interval counter while streaming */
} else {
if (Connect.CheckSendingIntervalExpired()) {
Connect.SetSendingIntervalCounter(0);
/* send network information to backend */
@ -525,6 +531,7 @@ void System_TaskCaptureAndSendPhoto(void *pvParameters) {
/* update counter */
Connect.IncreaseSendingIntervalCounter();
}
}
SystemLog.AddEvent(LogLevel_Verbose, F("Photo processing task. Stack free size: "), String(uxTaskGetStackHighWaterMark(NULL)) + "B");