From d14275e9e48a123b374b2a06baa37e154394443b Mon Sep 17 00:00:00 2001 From: xross Date: Tue, 31 Oct 2017 16:16:40 +0000 Subject: [PATCH] Final build issues with example app resolved after move to conf.h --- lib_xua/src/core/warnings.xc | 2 +- lib_xua/src/dfu/flash_interface.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib_xua/src/core/warnings.xc b/lib_xua/src/core/warnings.xc index ef548e54..0a72fb0d 100644 --- a/lib_xua/src/core/warnings.xc +++ b/lib_xua/src/core/warnings.xc @@ -3,7 +3,7 @@ Warnings relating to configuration defines located in this XC source file rather than the devicedefines.h header file in order to avoid multiple warnings being issued when the devicedefines.h header file is included in multiple files. */ -#include "xua_conf_default.h" +#include "xua_conf_full.h" #ifndef NO_USB diff --git a/lib_xua/src/dfu/flash_interface.c b/lib_xua/src/dfu/flash_interface.c index 3ed695fd..0409d250 100755 --- a/lib_xua/src/dfu/flash_interface.c +++ b/lib_xua/src/dfu/flash_interface.c @@ -4,6 +4,8 @@ #include #include +#if (XUA_DFU_EN == 1) + /* Defines flash area to erase on first DFU download request received * * Flash library will round it up to the nearest sector, e.g. 4KB @@ -245,4 +247,5 @@ int flash_cmd_erase_all(void) } return 0; } +#endif