summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/nrf/modules/machine/temp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/nrf/modules/machine/temp.c b/ports/nrf/modules/machine/temp.c
index 007a7e5fd..047514967 100644
--- a/ports/nrf/modules/machine/temp.c
+++ b/ports/nrf/modules/machine/temp.c
@@ -30,6 +30,9 @@
#include "py/nlr.h"
#include "py/runtime.h"
#include "py/mphal.h"
+
+#if MICROPY_PY_MACHINE_TEMP
+
#include "temp.h"
#include "nrf_temp.h"
@@ -40,8 +43,6 @@
#define BLUETOOTH_STACK_ENABLED() (ble_drv_stack_enabled())
#endif // BLUETOOTH_SD
-#if MICROPY_PY_MACHINE_TEMP
-
typedef struct _machine_temp_obj_t {
mp_obj_base_t base;
} machine_temp_obj_t;