From d9dc7cc7c7e16ee29a6fbd0b07d53de9694c5fe4 Mon Sep 17 00:00:00 2001 From: xross Date: Mon, 18 Oct 2021 16:45:07 +0100 Subject: [PATCH] XS2 now special case in DFU flag check --- lib_xua/src/dfu/dfu.xc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib_xua/src/dfu/dfu.xc b/lib_xua/src/dfu/dfu.xc index 43064281..849f4e28 100644 --- a/lib_xua/src/dfu/dfu.xc +++ b/lib_xua/src/dfu/dfu.xc @@ -11,11 +11,12 @@ #include "flash_interface.h" #include "dfu_interface.h" -#if defined(__XS3A__) -#define FLAG_ADDRESS 0xfffcc -#elif defined(__XS2A__) +#if defined(__XS2A__) /* Note range 0x7FFC8 - 0x7FFFF guarenteed to be untouched by tools */ #define FLAG_ADDRESS 0x7ffcc +#else +/* Note range 0xFFFC8 - 0xFFFFF guarenteed to be untouched by tools */ +#define FLAG_ADDRESS 0xfffcc #endif /* Store Flag to fixed address */