기본 버전 정보 및 패스키 기본값을 fstorage.h 매크로로 통합

This commit is contained in:
jhChun
2026-03-27 09:43:50 +09:00
parent 1ca16dcb75
commit 6071b7c699
3 changed files with 33 additions and 16 deletions

View File

@@ -116,10 +116,6 @@
#include "dr_piezo.h" /* 피에조 초음파 드라이버 */
#define HARDWARE_VERSION "VB0HW0000"
#define FIRMWARE_VERSION "VB0FW0000"
#define FIRMWARE_SERIAL_NO "VB026030000"
/*==============================================================================
* 빌드 설정
@@ -270,14 +266,14 @@ static uint8_t s_tx_pending_buf[BLE_NUS_MAX_DATA_LEN]; /* 대기
static uint16_t s_tx_pending_len = 0; /* 대기 중인 패킷 길이 */
char m_static_passkey[PASSKEY_LENGTH] = "123456"; /* 정적 패스키 (6자리, FDS에서 로드) */
char SERIAL_NO[SERIAL_NO_LENGTH]; /* 시리얼 번호 (BLE 디바이스 이름으로 사용) */
char HW_NO[HW_NO_LENGTH]; /* 하드웨어 번호 (FDS 저장/읽기) */
bool bond_data_delete; /* 본딩 데이터 삭제 요청 플래그 */
uint32_t m_life_cycle; /* 디바이스 수명 사이클 카운터 */
uint8_t resetCount = 0; /* 통신 타임아웃 카운터 (리셋 감지용) */
bool info4; /* 센서 측정 정보(배터리/IMU/온도) 포함 측정 플래그 */
uint8_t m_reset_status; /* 리셋 상태 코드 (1=정상, 2=SW리셋, 5=보안리셋, 10=본딩완료) */
char m_static_passkey[PASSKEY_LENGTH] = DEFAULT_PASSKEY; /* 정적 패스키 (6자리, FDS에서 로드) */
char SERIAL_NO[SERIAL_NO_LENGTH]; /* 시리얼 번호 (BLE 디바이스 이름으로 사용) */
char HW_NO[HW_NO_LENGTH]; /* 하드웨어 번호 (FDS 저장/읽기) */
bool bond_data_delete; /* 본딩 데이터 삭제 요청 플래그 */
uint32_t m_life_cycle; /* 디바이스 수명 사이클 카운터 */
uint8_t resetCount = 0; /* 통신 타임아웃 카운터 (리셋 감지용) */
bool info4; /* 센서 측정 정보(배터리/IMU/온도) 포함 측정 플래그 */
uint8_t m_reset_status; /* 리셋 상태 코드 (1=정상, 2=SW리셋, 5=보안리셋, 10=본딩완료) */
/*==============================================================================
* 미사용 변수 경고 억제