Am seeing the following behavior in Marlin:
When moving the printhead, if an end stop is hit, a position report (M114) erroneously reports the print head position as where it was trying to go, as opposed to where it's position actually is.
For example (using pronsole):
> M114
X:1.00 Y:1.00 Z:1.00 E:0.00 Count A: 142 B:0 Z:1260
> G0 Z100
endstops hit: Z:16.88
> M114
X:1.00 Y:1.00 Z:100.00 E:0.00 Count A: 142 B:0 Z:21263
In this example, the Z endstop was hit at (z:16.88), but the printer appears to think it is at the target location (z:100).
The "Count" Z appears to remain accurate however.
Question: Is this a bug in Marlin, or is this correct behavior and I am misunderstanding something?