Skip to content

Commit c61dc47

Browse files
committed
esp32-camera: fix compatibility issue caused by commit ae32d52c
see commit: espressif/esp32-camera@ae32d52#diff-a00662a8f0e0727f691f0ff27d0dd00a3721195193dad7b9b3dffb3f4d8591cc
1 parent ac169f0 commit c61dc47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/resolution.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Resolution::getWidth() const
1616
if (!isValid()) {
1717
return -1;
1818
}
19-
return ::resolution[m_frameSize][0];
19+
return ::resolution[m_frameSize].width;
2020
}
2121

2222
int
@@ -25,7 +25,7 @@ Resolution::getHeight() const
2525
if (!isValid()) {
2626
return -1;
2727
}
28-
return ::resolution[m_frameSize][1];
28+
return ::resolution[m_frameSize].height;
2929
}
3030

3131
Resolution

0 commit comments

Comments
 (0)