refactor(#159): rename sendSpoolDetectedMessage → sendOpenPrintTagMessage#162
Conversation
…sage
The function is OpenPrintTag-specific (uses opt_get_* CBOR accessors and
sets tag_format = "OpenPrintTag"). The old name implied it handled any
spool-detection event, which made multi-format support harder to reason
about. Rename clarifies scope ahead of per-format sender functions.
Mechanical rename: 1 declaration + 1 definition + 9 call sites (all in
NFCManager.{h,cpp}). No behavior change. Builds clean on esp32s3zero
and esp32dev.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA refactoring change that renames the private method Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bumps FIRMWARE_VERSION from 1.7.2 → 1.7.3. CHANGELOG.md: - Adds [1.7.3] entry documenting SpoolSense#163 WiFi keep-awake, SpoolSense#165 case files, SpoolSense#164/SpoolSense#13 TigerTag partial writes, SpoolSense#159/SpoolSense#162 openprinttag rename. - Backfills missing [1.7.2] entry (Bambu MIFARE Classic reading, SpoolSense#24). - Backfills missing [1.7.1] entry (writer enrichment + bug fixes, SpoolSense#130/SpoolSense#101/SpoolSense#128/SpoolSense#151 and platform pin).
Closes #159.
Summary
NFCManager::sendSpoolDetectedMessage→sendOpenPrintTagMessageto reflect its actual scope (OpenPrintTag-only; usesopt_get_*CBOR accessors and setstag_format = "OpenPrintTag").src/NFCManager.{h,cpp}.Why
The old name implied it handled any spool-detection event. As we add Bambu / TigerTag / OpenSpool / OpenTag3D sender paths, the ambiguity makes the code harder to reason about. This rename makes it obvious which format the function belongs to and sets up per-format senders cleanly.
Test plan
esp32s3zero,esp32dev,esp32s3devkitcreview-remote(qwen3-coder:30b) — no issuesSummary by CodeRabbit