v2.3.2 - Remove Legacy ENABLE_DEVICE_RESPONSE Guards (2026-02-24)¶
What Changed?¶
This release removes all ENABLE_DEVICE_RESPONSE conditional compilation guards
from the v2 codebase. The main branch is now v2-only, and the unified device
response protocol is always active. No behavior changes — the compiled firmware
is identical to v2.3.1.
What's New¶
Main Feature: Unconditional Unified Protocol¶
What it does:
Removes #if ENABLE_DEVICE_RESPONSE / #endif preprocessor blocks from 7 files.
The ENABLE_DEVICE_RESPONSE flag was hardcoded to 1 in config.h, making
these guards dead code. The legacy #else branch in v2_command_queue.h
(containing is_ok and message[512] fields) has also been deleted.
How to use it: No changes required. Build and upload as usual.
task v2:build
task v2:upload
Installation¶
Quick Start¶
# Get the release
git checkout v2.3.2
# Build
task v2:build
# Upload
task v2:upload
# Check it works
task monitor
What's Different from the Last Version?¶
🔧 Changed¶
include/v2_detector.h: Remove#if ENABLE_DEVICE_RESPONSE/#endifinclude/v2_detection_processor.h: Remove#if ENABLE_DEVICE_RESPONSE/#endifinclude/v2_device_response.h: Remove#if ENABLE_DEVICE_RESPONSE/#endifinclude/v2_command_queue.h: Remove#if/#else/#endif; delete legacyis_okandmessage[512]fieldsinclude/v2_command.h: Remove#if ENABLE_DEVICE_RESPONSE/#endifinclude/v2_command_manager.h: Remove#if ENABLE_DEVICE_RESPONSE/#endifsrc/v2_detector.cpp: Remove#if ENABLE_DEVICE_RESPONSE/#endif
Is It Safe to Upgrade?¶
Backward Compatible: Yes
- Compiled firmware is bit-for-bit identical to v2.3.1
- No API changes, no behavior changes
- Only source code structure changed (dead code removed)
Tests Passed¶
- ✅ Builds without errors (
task v2:build) - ✅ RAM: 31.4%, Flash: 27.8% (unchanged from v2.3.1)
Release Details¶
- Date: 2026-02-24
- Version: v2.3.2
- Files Changed: 7
Next Steps¶
Continue removing other legacy references (ENABLE_TEXT_COMMAND, ENABLE_DEVICE_RESPONSE
from comments, PLATFORMIO_ENV_V0/V1 from Taskfile.yml).