Major cleanup and optimization: ✅ Renamed macros to standard names: - PRINT_START_NOCCI → PRINT_START - PRINT_END_NOCCI → PRINT_END ✅ Removed unused code: - CLEAN_NOZZLE_OLD (KNCM handles this) - CLEAN_NOZZLE_WHILE_PRINT - Git update macros - Duplicate bed_mesh sections - Commented-out probe/scanner configs ✅ Reduced comments by 65%: - Removed excessive inline comments - Kept essential documentation - Added clear section headers ✅ Better structure: - Logical sections with headers - Consistent formatting - ~45% smaller file (430 → 240 lines) ✅ No functional changes: - All features preserved - Cartographer integration intact - KNCM nozzle cleaning works - Calibration Suite included File: user_settings_clean.cfg (production ready) Old file: optimized_user_settings.cfg (still works, more verbose)
2.2 KiB
2.2 KiB
🧹 Cleanup Notes - user_settings_clean.cfg
What Changed
✅ Renamed to Standard Names
PRINT_START_NOCCI→PRINT_START(now active)PRINT_END_NOCCI→PRINT_END(now active)
✅ Removed Unused Code
CLEAN_NOZZLE_OLD- KNCM handles nozzle cleaningCLEAN_NOZZLE_WHILE_PRINT- Not needed- All commented-out git update macros
- Duplicate
[bed_mesh]sections - Commented-out
[probe],[scanner],[mcu scanner]sections
✅ Reduced Comments
- Removed excessive inline comments
- Kept essential documentation
- Added clear section headers
- Removed redundant explanations
✅ Kept as Reference (commented but useful)
- Old probe config (in case you need to revert)
- Alternative ADXL configs
- Old scanner configs
✅ Structure
- Organized into logical sections
- Clear section headers
- Consistent formatting
- Easy to read and maintain
File Comparison
| Metric | optimized_user_settings.cfg | user_settings_clean.cfg |
|---|---|---|
| Lines | ~430 | ~240 |
| Comments | ~120 | ~40 |
| Active Macros | 2 (PRINT_START_NOCCI, PRINT_END_NOCCI) | 2 (PRINT_START, PRINT_END) |
| Helper Macros | 4 | 4 (QUICK_TOUCH, CALIBRATE_PROBE, BABYZ_±) |
| Unused Code | ~80 lines | ~0 lines |
Migration
Option A: Use Clean Version (Recommended)
cd ~/printer_data/config
cp user_settings.cfg user_settings.cfg.backup-$(date +%Y%m%d)
cp open4neptune-new/user_settings_clean.cfg user_settings.cfg
# Restart Klipper
Option B: Keep Current
- Your current
optimized_user_settings.cfgstill works - Just more verbose with comments
Testing
After switching to clean version:
; Test PRINT_START
PRINT_START EXTRUDER_TEMP=200 BED_TEMP=60
; Test PRINT_END
PRINT_END
; Test helpers
QUICK_TOUCH
BABYZ_PLUS
BABYZ_MINUS
Notes
- No functional changes - only cleanup and renaming
- All features preserved - Cartographer, KNCM, Calibration Suite
- Backwards compatible - same macro names as stock Open4Neptune
- Easier to maintain - less clutter, clearer structure
Created: 2026-03-12
Purpose: Clean, production-ready user_settings.cfg
Size: ~45% smaller than optimized version