ArduCAM / MIPI_Camera

223 stars 107 forks source link

Why does arducam_set_lens_table take mutable c-string instead of const c-string? #153

Open mjfryc opened 2 years ago

mjfryc commented 2 years ago

https://github.com/ArduCAM/MIPI_Camera/blob/704b4d69dd2013a6c2a1f0e29638b87b67ba91a7/RPI/arducam_mipicamera.h#L230

int arducam_set_lens_table(CAMERA_INSTANCE camera_instance, char* lens_table_path);

Does this function modify content of the parameter lens_table_path?

If it doesn't, make it const char*.

If it modifies the parameter lens_table_path, describe how the path is modified.

This signature disallow putting const char* string without const_cast...