HLK-LD2402 Update for firmware 3.3.5+ (#23281)

* Many changes for the newest firmware 3.3.5

added comments and debug lines
added new autogain function (fw 3.3.5+)
changed variables for consistency
ended configuration mode on error
fixed improper JSON response messages
changed timings for new firmware
consolidated post configuration processsing

* code size reduction
updated size extimates

* reworked to reduce code and memory usage

---------

Co-authored-by: Anthony Sepa <protectivedad@gmail.com>
This commit is contained in:
protectivedad 2025-04-14 05:44:00 -03:00 committed by GitHub
parent 68f019cf43
commit 3a28938b91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 552 additions and 563 deletions

View File

@ -911,7 +911,7 @@
//#define USE_VINDRIKTNING // Add support for IKEA VINDRIKTNING particle concentration sensor (+0k6 code)
// #define VINDRIKTNING_SHOW_PM1 // Display undocumented/supposed PM1.0 values
// #define VINDRIKTNING_SHOW_PM10 // Display undocumented/supposed PM10 values
//#define USE_LD2402 // Add support for HLK-LD2402 Ultra Low-power 24GHz smart wave motion sensor (+4k7 code, 144 RAM)
//#define USE_LD2402 // Add support for HLK-LD2402 24GHz human presence sensor module (+10k9 code, 320 RAM)
//#define USE_LD2410 // Add support for HLK-LD2410 24GHz smart wave motion sensor (+3k7 code, 88 RAM)
//#define USE_LD2410S // Add support for HLK-LD2410S Ultra Low-power 24GHz smart wave motion sensor (+4k7 code, 144 RAM)
//#define USE_LOX_O2 // Add support for LuminOx LOX O2 Sensor (+0k8 code)

File diff suppressed because it is too large Load Diff