From 2a7f040c4e070b37153d8faf18a5a07137d0ebed Mon Sep 17 00:00:00 2001 From: kyz Date: Fri, 28 Mar 2025 23:49:25 +0800 Subject: [PATCH] =?utf8?q?v9.1=20=E4=BF=AE=E6=94=B9flash=E5=8F=82=E6=95=B0?= =?utf8?q?=E4=BF=9D=E5=AD=98=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Core/Inc/user.h | 4 ++-- Core/Src/user_nv.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Inc/user.h b/Core/Inc/user.h index 593a6fd..faeb813 100644 --- a/Core/Inc/user.h +++ b/Core/Inc/user.h @@ -18,9 +18,9 @@ #define RELAY2_CUSTOM_MODE 1 //定制版本,ry1 作为通道1到12, ry2作为通道13到24的报警输出 #if RELAY2_CUSTOM_MODE -#define DEVICE_SWVER 0x0900 +#define DEVICE_SWVER 0x0901 #else -#define DEVICE_SWVER 0x0102 +#define DEVICE_SWVER 0x0103 #endif #define DEVICE_TYPE 0x5A31 //'AB' diff --git a/Core/Src/user_nv.c b/Core/Src/user_nv.c index e8552eb..3a37e2e 100644 --- a/Core/Src/user_nv.c +++ b/Core/Src/user_nv.c @@ -76,7 +76,7 @@ int32_t FLASH_NV_Erase( uint32_t addr ) return 0; } -#define GET_DATA64( d, off ) (d[off+0]|(d[off+1]<<8)|(d[off+2]<<16)|(d[off+3]<<24)|((uint64_t)d[off+4]<<32)|((uint64_t)d[off+5]<<40)|((uint64_t)d[off+6]<<48)|((uint64_t)d[off+7]<<56)) +#define GET_DATA64( d, off ) (d[off+0]|(d[off+1]<<8)|(d[off+2]<<16)|((uint64_t)d[off+3]<<24)|((uint64_t)d[off+4]<<32)|((uint64_t)d[off+5]<<40)|((uint64_t)d[off+6]<<48)|((uint64_t)d[off+7]<<56)) int32_t FLASH_NV_Write( uint32_t addr, uint8_t *data, uint16_t data_size ) { -- 2.34.1