FW upgrade to 4.1.0 - new errors on Lepton Module - prev FW ran fine

I have a OpenMV H7 Plus with a Lepton Module. The code has been running fine until I upgraded the FW to 4.1.0.

I am now getting the following error:
RuntimeError: The requested operation is not supported on the current pixel format

sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True)
sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius)

Thoughts? Thanks, Curtis

It’s bug in checking the ioctl number of args, some recent changes that improve error reporting broke it. Here’s a workaround for now just add any extra arg, and I will fix it in the next release:

sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True, 0)
sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius, 0)

That was it. Thanks for the help and quick response! Curtis