Skip to content

Commit ead03cd

Browse files
committed
add caveat in documentation
1 parent f7d39ce commit ead03cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared-bindings/microcontroller/Processor.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ MP_PROPERTY_GETTER(mcu_processor_reset_reason_obj,
104104
//| temperature: Optional[float]
105105
//| """The on-chip temperature, in Celsius, as a float. (read-only)
106106
//|
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+
//| """
108112
STATIC mp_obj_t mcu_processor_get_temperature(mp_obj_t self) {
109113
float temperature = common_hal_mcu_processor_get_temperature();
110114
return isnan(temperature) ? mp_const_none : mp_obj_new_float(temperature);

0 commit comments

Comments
 (0)