From b658a403c827a6feb9cef385f6a036edfa0eb67b Mon Sep 17 00:00:00 2001 From: helei Date: Fri, 4 Sep 2026 21:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87:=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E4=B8=8D=E4=B8=BB=E5=8A=A8=E9=80=92=E5=A2=9E?= =?UTF-8?q?=E7=9A=84=E7=BA=A6=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AI项目上下文.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AI项目上下文.md b/AI项目上下文.md index 56a6b60..fc5b560 100644 --- a/AI项目上下文.md +++ b/AI项目上下文.md @@ -20,6 +20,8 @@ ## 2. 源码约定(极重要,反复踩坑) +- **版本号 `FIRMWARE_VERSION_STR` 不要主动加**:功能更新时用户没明确说升版本就不动(小改动也涨版本会失控) + - **所有 APP 源文件(.c/.h)是 GBK 编码**,Read/Edit 工具无法直接处理,一律用 python 脚本(读 gbk、改、encode 验证后写) - **heredoc 转义陷阱**(python 脚本写 C 代码时高发): - `\22` 在 python 字符串里会变成八进制 0x12——构造 AT 命令 JSON 转义时必须用 `chr(92)` 拼反斜杠