nrf/temp: Move module configuration guard.
This patch moves the check for MICROPY_PY_MACHINE_TEMP to come before the inclusion of nrf_temp.h. The nrf_temp.h depends on the NRF_TEMP_Type which might not be defined for all nRF devices.
This commit is contained in:
parent
d2e730b727
commit
02a8c31eef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user