Achieve RepRap Host compatibility for temperature readouts as well.

This commit is contained in:
Markus Hitter 2010-07-03 23:58:12 +02:00
parent c013a185e8
commit 884fdf5c25
2 changed files with 7 additions and 0 deletions

View File

@ -159,7 +159,11 @@ void temp_print() {
c = (current_temp & 3) * 25;
t = (target_temp & 3) * 25;
#ifdef REPRAP_HOST_COMPATIBILITY
sersendf_P(PSTR("T: %u.%u\n"), current_temp >> 2, c);
#else
sersendf_P(PSTR("T: %u.%u/%u.%u :%u\n"), current_temp >> 2, c, target_temp >> 2, t, temp_residency);
#endif
}
}

View File

@ -3,6 +3,9 @@
#include <stdint.h>
// RepRap host software isn't exactly tolerant on what it ready back.
#define REPRAP_HOST_COMPATIBILITY
// extruder heater PID factors
// google "PID without a PHD" if you don't understand this PID stuff
extern int32_t p_factor;