nrf5/modules: Moving includes inside config defines to make non-ubluepy targets compile again.
This commit is contained in:
parent
b493bfda64
commit
8d1b05563c
|
@ -24,13 +24,14 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
#if MICROPY_PY_UBLUEPY_PERIPHERAL || MICROPY_PY_UBLUEPY_CENTRAL
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "py/runtime.h"
|
||||
#include "modubluepy.h"
|
||||
#include "softdevice.h"
|
||||
|
||||
#if MICROPY_PY_UBLUEPY_PERIPHERAL || MICROPY_PY_UBLUEPY_CENTRAL
|
||||
|
||||
STATIC void ubluepy_service_print(const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) {
|
||||
ubluepy_service_obj_t * self = (ubluepy_service_obj_t *)o;
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#if MICROPY_PY_UBLUEPY
|
||||
|
||||
#include "py/obj.h"
|
||||
#include "py/runtime.h"
|
||||
#include "py/objstr.h"
|
||||
|
@ -32,8 +34,6 @@
|
|||
#include "modubluepy.h"
|
||||
#include "softdevice.h"
|
||||
|
||||
#if MICROPY_PY_UBLUEPY
|
||||
|
||||
STATIC void ubluepy_uuid_print(const mp_print_t *print, mp_obj_t o, mp_print_kind_t kind) {
|
||||
ubluepy_uuid_obj_t * self = (ubluepy_uuid_obj_t *)o;
|
||||
if (self->type == UBLUEPY_UUID_16_BIT) {
|
||||
|
|
Loading…
Reference in New Issue