File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
shared-bindings/microcontroller Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,11 @@ MP_PROPERTY_GETTER(mcu_processor_reset_reason_obj,
104
104
//| temperature: Optional[float]
105
105
//| """The on-chip temperature, in Celsius, as a float. (read-only)
106
106
//|
107
- //| Is `None` if the temperature is not available."""
107
+ //| Is `None` if the temperature is not available.
108
+ //|
109
+ //| .. note :: On small SAMD21 builds without external flash,
110
+ //| the reported temperature has reduced accuracy and precision, to save code space.
111
+ //| """
108
112
STATIC mp_obj_t mcu_processor_get_temperature (mp_obj_t self ) {
109
113
float temperature = common_hal_mcu_processor_get_temperature ();
110
114
return isnan (temperature ) ? mp_const_none : mp_obj_new_float (temperature );
You can’t perform that action at this time.
0 commit comments