diff --git a/nrf5/hal/hal_temp.c b/nrf5/hal/hal_temp.c index fa08c25279..98b27ed725 100644 --- a/nrf5/hal/hal_temp.c +++ b/nrf5/hal/hal_temp.c @@ -36,8 +36,8 @@ void hal_temp_init(void) { } int32_t hal_temp_read(void) { - int32_t volatile temp; - hal_temp_init(); + int32_t volatile temp; + hal_temp_init(); NRF_TEMP->TASKS_START = 1; // Start the temperature measurement. diff --git a/nrf5/modules/machine/temp.c b/nrf5/modules/machine/temp.c index 1818784b65..a5b660c00f 100644 --- a/nrf5/modules/machine/temp.c +++ b/nrf5/modules/machine/temp.c @@ -46,7 +46,7 @@ STATIC void machine_temp_print(const mp_print_t *print, mp_obj_t o, mp_print_kin (void)self; - mp_printf(print, "Temp.read()"); + mp_printf(print, "Temp"); } /******************************************************************************/