Merge 848b7e48fd into db0112e9c2
commit
2612b01ce6
|
|
@ -505,6 +505,12 @@ void System_TaskCaptureAndSendPhoto(void *pvParameters) {
|
||||||
TickType_t xLastWakeTime = xTaskGetTickCount();
|
TickType_t xLastWakeTime = xTaskGetTickCount();
|
||||||
|
|
||||||
while (1) {
|
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()) {
|
if (Connect.CheckSendingIntervalExpired()) {
|
||||||
Connect.SetSendingIntervalCounter(0);
|
Connect.SetSendingIntervalCounter(0);
|
||||||
/* send network information to backend */
|
/* send network information to backend */
|
||||||
|
|
@ -525,6 +531,7 @@ void System_TaskCaptureAndSendPhoto(void *pvParameters) {
|
||||||
/* update counter */
|
/* update counter */
|
||||||
Connect.IncreaseSendingIntervalCounter();
|
Connect.IncreaseSendingIntervalCounter();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SystemLog.AddEvent(LogLevel_Verbose, F("Photo processing task. Stack free size: "), String(uxTaskGetStackHighWaterMark(NULL)) + "B");
|
SystemLog.AddEvent(LogLevel_Verbose, F("Photo processing task. Stack free size: "), String(uxTaskGetStackHighWaterMark(NULL)) + "B");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue