Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
arduino-cli lib install "pdulib"
arduino-cli lib install "ReadyMail"

- name: Generate wifi_config.h
run: |
cp code/wifi_config.h.example code/wifi_config.h

- name: Compile firmware
run: |
arduino-cli compile --fqbn esp32:esp32:esp32c3 ./code/code.ino
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
code/wifi_config.h
!*.example
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,11 @@ ESP32C3 与 ML307R-DC 通过串口(UART)连接,接线如下:
- **pdulib** by David Henry

需要在`Arduino IDE`中安装ESP32开发板支持,参考[官方文档](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html),版型选`MakerGO ESP32 C3 SuperMini`。

## 软件编译

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

PR 标题和描述中提到了更新 CI 流程,但在当前的提交中没有看到任何 CI 配置文件(例如 .github/workflows/ 下的 YAML 文件)的修改。如果 CI 流程没有同步更新以执行 cp 命令生成 wifi_config.h,由于该文件已被忽略且建议从仓库移除,CI 上的自动化编译将会失败。


克隆仓库后,复制 WiFi 信息配置文件模板,并填入 WiFi SSID 和 WiFi 密码:

```bash
cp code/wifi_config.h.example code/wifi_config.h

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

虽然 README 中增加了编译说明,但根据 PR 描述,本意是“停止追踪” wifi_config.h。目前该文件似乎仍然存在于仓库的索引中(在文件列表中可见)。为了彻底停止追踪并使 .gitignore 生效,你需要执行 git rm --cached code/wifi_config.h 并提交该变更。否则,该文件及其后续变更仍会被 Git 记录。

```
File renamed without changes.
Loading