mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
commit
1383234122
@ -509,7 +509,7 @@ static mp_obj_t py_sensor_ioctl(uint n_args, const mp_obj_t *args)
|
|||||||
if (sensor_ioctl(request, &temp) != 0) {
|
if (sensor_ioctl(request, &temp) != 0) {
|
||||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "Sensor control failed!"));
|
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "Sensor control failed!"));
|
||||||
}
|
}
|
||||||
ret_obj = mp_obj_new_int(temp);
|
ret_obj = mp_obj_new_float((((float) temp) / 100) - 273.15f);
|
||||||
}
|
}
|
||||||
|
|
||||||
case IOCTL_LEPTON_SET_MEASUREMENT_MODE:
|
case IOCTL_LEPTON_SET_MEASUREMENT_MODE:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user