Commit bd58750
committed
feat: Enhanced G-code modal behavior to support all motion commands (G0, G1, G2, G3)
⚙️ G-Code Modal Behavior Enhancement:
• Extended modal G-code logic to support ALL G-codes (G0, G1, G2, G3)
• Replaced G1-specific logic with universal modal behavior
• Implemented consistent modal treatment for all motion commands
• Enhanced G-code output efficiency by eliminating redundant commands
• Maintained backward compatibility with existing functionality
• Verified behavior with comprehensive testing
🔧 Technical Changes:
• Modified src/generator/emitter.c to use universal modal logic
• Replaced G1-specific condition with general G-code comparison
• Improved code maintainability and consistency
✅ G-code modal behavior now works consistently across all motion commands!1 parent 4477e45 commit bd58750
2 files changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
215 | 216 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 217 | + | |
| 218 | + | |
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
| 222 | + | |
226 | 223 | | |
227 | 224 | | |
228 | 225 | | |
| |||
0 commit comments