SV04-Marlin-2.1.x
SV04-Marlin-2.1.x copied to clipboard
Meshviewer mesh output reversed per line after reboot
Describe the bug The mesh is reversed on loadup via RTS_INIT
To Reproduce Steps to reproduce the behavior:
- generate mesh
- look at the lines.. for example 1 2 3 4 5
- reboot printer
- go to meshviewer, each line is reversed so the example line gets 5 4 3 2 1
Expected behavior showing as saved
Additional context the fix for this is to change the order here:
https://github.com/johncarlson21/SV04-Marlin-2.1.x/blob/859bc997a6ad3309186f739cb1cdee27746ea8a8/Marlin/src/lcd/e3v2/creality/LCD_RTS.cpp#L366
// away from origin
if (zig)
{
inStart = GRID_MAX_POINTS_X - 1;
inStop = -1;
inInc = -1;
}
else
{
// towards origin
inStart = 0;
inStop = GRID_MAX_POINTS_X;
inInc = 1;
}
Thank you for the code. I included it in my fork and came to this bug after user reports.