pupil-labs / pupil-picoflexx

Pico Flexx Backend for Pupil Capture
GNU Lesser General Public License v3.0
1 stars 3 forks source link

Set exposure mode using functions exposed by roypy #10

Closed Murnto closed 5 years ago

Murnto commented 5 years ago

Newer versions of libroyale properly expose getExposureMode and setExposureMode.

papr commented 5 years ago

@Murnto Is it possible to check the installed roypy version? If so, I would recommend to add version checks similar to this.

Murnto commented 5 years ago

@papr Added version checking for 3.21.1.70.

I wrapped the requirements checks to mitigate crashing the entire app. However if the user had the backend active previously and now doesn't meet the requirements anymore, some internal Pupil plugins will crash as there's no Source/Backend active, leaving g_pool.capture unexpectedly None.