생산용 BLE write 명령 잠금 추가

- serial number / HW version / passkey write 명령 해당
- production_done NVS 플래그 추가
- 기존 passkey_changed 플래그 제거
- production_done=0 상태에서만 Serial/HW/Passkey Write 허용
- production_done=1 상태에서는 생산용 Write 명령을 rxd 응답으로 차단
- msr 본딩 삭제 성공 시 production_done=1 저장
This commit is contained in:
2026-07-30 11:51:06 +09:00
parent 41137a1c72
commit eab562d52e
6 changed files with 70 additions and 47 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ extern volatile bool processing;
extern char SERIAL_NO[SERIAL_NO_BUF_SIZE];
extern char HW_NO[HW_NO_BUF_SIZE];
extern char m_static_passkey[PASSKEY_BUF_SIZE];
extern uint8_t m_passkey_changed;
extern uint8_t m_production_done;
extern bool bond_data_delete;
extern uint32_t m_life_cycle;
extern uint8_t m_reset_status;