mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-02 02:39:30 +00:00
Three small correctness/polish improvements from BLE audit Phase 2F: 1. Five handlers (CMD_APP_START, CMD_GET_CHANNEL, CMD_SET_CHANNEL, CMD_DEVICE_QUERY, CMD_SEND_CHANNEL_TXT_MSG) previously responded with ERR_UNSUPPORTED on short-frame validation failure (because they fell through to the dispatcher's default break, which the caller converts to "unknown command"). They now explicitly sendPacketError(ERR_ILLEGAL_ARG) — the semantically correct code for "known cmd, bad frame". 2. CMD_SET_TUNING_PARAMS previously returned PACKET_OK on short frames without applying any change. Now sends ERR_ILLEGAL_ARG so the phone learns the change didn't take. 3. Added static_assert that CONFIG_ZEPHCORE_BOARD_NAME fits in 40 bytes including its null terminator, so a future too-long board name fails at build time instead of producing an unterminated wire-format response.