Achieve RepRap Host compatibility for temperature readouts as well.
This commit is contained in:
parent
c013a185e8
commit
884fdf5c25
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue