include image index in debug

This commit is contained in:
Isaac Connor 2022-01-19 12:27:16 -05:00
parent 062cde54a0
commit 05043a37b1
1 changed files with 2 additions and 2 deletions

View File

@ -727,12 +727,12 @@ void MonitorStream::runStream() {
(monitor->GetFunction() == Monitor::MOCORD || monitor->GetFunction() == Monitor::MODECT)) { (monitor->GetFunction() == Monitor::MOCORD || monitor->GetFunction() == Monitor::MODECT)) {
Debug(1, "Sending analysis image"); Debug(1, "Sending analysis image");
send_image = monitor->GetAlarmImage(); send_image = monitor->GetAlarmImage();
if ( !send_image ) { if (!send_image) {
Debug(1, "Falling back"); Debug(1, "Falling back");
send_image = monitor->image_buffer[index]; send_image = monitor->image_buffer[index];
} }
} else { } else {
Debug(1, "Sending regular image"); Debug(1, "Sending regular image index %d", index);
send_image = monitor->image_buffer[index]; send_image = monitor->image_buffer[index];
} }