Skip to content

Commit 35b4186

Browse files
committed
Camera: fix non-virtual functions not being overriddable
1 parent 498c087 commit 35b4186

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/Camera/src/camera.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ class ImageSensor {
7979
virtual int motionDetected() = 0;
8080
virtual void debug(Stream &stream) = 0;
8181

82-
int setStandby(bool enable) {
82+
virtual int setStandby(bool enable) {
8383
return -1;
8484
}
8585

86-
int setTestPattern(bool enable, bool walking) {
86+
virtual int setTestPattern(bool enable, bool walking) {
8787
return -1;
8888
}
8989
};

libraries/Himax_HM01B0/himax.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class HM01B0: public ImageSensor {
4141
int setFrameRate(int32_t framerate);
4242
int setResolution(int32_t resolution);
4343
int setPixelFormat(int32_t pixformat);
44-
int setTestPattern(bool enable, bool walking);
44+
int setTestPattern(bool enable, bool walking) override;
4545
int enableMotionDetection(md_callback_t callback=NULL);
4646
int disableMotionDetection();
4747
int setMotionDetectionWindow(uint32_t x, uint32_t y, uint32_t w, uint32_t h);

libraries/Himax_HM0360/hm0360.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class HM0360: public ImageSensor {
4141
int setFrameRate(int32_t framerate);
4242
int setResolution(int32_t resolution);
4343
int setPixelFormat(int32_t pixformat);
44-
int setTestPattern(bool enable, bool walking);
44+
int setTestPattern(bool enable, bool walking) override;
4545
int enableMotionDetection(md_callback_t callback=NULL);
4646
int disableMotionDetection();
4747
int setMotionDetectionWindow(uint32_t x, uint32_t y, uint32_t w, uint32_t h);

0 commit comments

Comments
 (0)