From 93a8e5635f7b743a2c6d37c38e199b6b1097337f Mon Sep 17 00:00:00 2001 From: Ibrahim Abd Elkader Date: Tue, 8 Jun 2021 01:06:00 +0200 Subject: [PATCH] Update src/omv/modules/py_sensor.c --- src/omv/modules/py_sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omv/modules/py_sensor.c b/src/omv/modules/py_sensor.c index 4d7d0fb08..207b9ccf5 100644 --- a/src/omv/modules/py_sensor.c +++ b/src/omv/modules/py_sensor.c @@ -122,7 +122,7 @@ static mp_obj_t py_sensor_snapshot(uint n_args, const mp_obj_t *args, mp_map_t * MP_ERROR_TEXT("PIXFORMAT not set!")); } else if (ret == -2) { mp_raise_msg(&mp_type_RuntimeError, - MP_ERROR_TEXT("FRAMESIZE not set, unsupported FRAMESIZE, or unsupported WINDOW!")); + MP_ERROR_TEXT("Invalid Frame Size or Window!")); } else if (ret == -3) { mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("Framebuffer Error!")); } else if (ret == -4) {