AnHardt / Marlin

Reprap FW with look ahead. SDcard and LCD support. It works on Gen6, Ultimaker, RAMPS and Sanguinololu
GNU General Public License v3.0
1 stars 1 forks source link

Change XY formatting on LCD #5

Closed AnHardt closed 8 years ago

AnHardt commented 8 years ago

According to https://github.com/MarlinFirmware/MarlinDev/issues/123 negative values for XY at or below -100 are displaying incorrectly, dropping the first digit. Deltas can easily have XY values in this range. This PR adds a function to display floats/ints formatted like _123, -123, _-12, or __-1 as appropriate and applies it to the XY coordinates on Hitachi displays. It also moves the Z value to the right to be consistent with the XY formatting.

Originally by @thinkyhead (https://github.com/MarlinFirmware/MarlinDev/pull/181) with some minor improvements.