mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix missing break and parens.
This commit is contained in:
parent
c317226738
commit
cb1e44abb1
@ -510,6 +510,7 @@ static mp_obj_t py_sensor_ioctl(uint n_args, const mp_obj_t *args)
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "Sensor control failed!"));
|
||||
}
|
||||
ret_obj = mp_obj_new_float((((float) temp) / 100) - 273.15f);
|
||||
break;
|
||||
}
|
||||
|
||||
case IOCTL_LEPTON_SET_MEASUREMENT_MODE:
|
||||
@ -548,9 +549,10 @@ static mp_obj_t py_sensor_ioctl(uint n_args, const mp_obj_t *args)
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
default: {
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "Operation not supported!"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret_obj;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user