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