modules/py_csi_ng: Fix NULL image arg.

omv_csi_snapshot() implementations generally expect
image to not be NULL and crash if it is.
This commit is contained in:
Kwabena W. Agyeman 2025-07-10 22:47:52 -07:00
parent ea0505d52e
commit b428655767

View File

@ -248,7 +248,7 @@ static mp_obj_t py_csi_snapshot(size_t n_args, const mp_obj_t *pos_args, mp_map_
break;
}
int error = omv_csi_snapshot(self->csi, NULL, flags);
int error = omv_csi_snapshot(self->csi, &image, flags);
if (error != 0) {
omv_csi_raise_error(error);
}