Apply indentation to gcode_M303, PID_autotune

master
Scott Lahteine 9 years ago
parent ba66336503
commit a26d70e932

@ -5559,7 +5559,7 @@ inline void gcode_M226() {
* U<bool> with a non-zero value will apply the result to current settings * U<bool> with a non-zero value will apply the result to current settings
*/ */
inline void gcode_M303() { inline void gcode_M303() {
#if ENABLED(PIDTEMP) #if ENABLED(PIDTEMP)
int e = code_seen('E') ? code_value_short() : 0; int e = code_seen('E') ? code_value_short() : 0;
int c = code_seen('C') ? code_value_short() : 5; int c = code_seen('C') ? code_value_short() : 5;
bool u = code_seen('U') && code_value_short() != 0; bool u = code_seen('U') && code_value_short() != 0;
@ -5574,10 +5574,10 @@ inline void gcode_M303() {
PID_autotune(temp, e, c, u); PID_autotune(temp, e, c, u);
KEEPALIVE_STATE(IN_HANDLER); KEEPALIVE_STATE(IN_HANDLER);
#else #else
SERIAL_ERROR_START; SERIAL_ERROR_START;
SERIAL_ERRORLNPGM(MSG_ERR_M303_DISABLED); SERIAL_ERRORLNPGM(MSG_ERR_M303_DISABLED);
#endif #endif
} }
#if ENABLED(SCARA) #if ENABLED(SCARA)

@ -223,7 +223,7 @@ static void updateTemperaturesFromRawValues();
#if ENABLED(PIDTEMP) #if ENABLED(PIDTEMP)
void PID_autotune(float temp, int extruder, int ncycles, bool set_result/*=false*/) { void PID_autotune(float temp, int extruder, int ncycles, bool set_result/*=false*/) {
float input = 0.0; float input = 0.0;
int cycles = 0; int cycles = 0;
bool heating = true; bool heating = true;
@ -392,7 +392,7 @@ void PID_autotune(float temp, int extruder, int ncycles, bool set_result/*=false
} }
lcd_update(); lcd_update();
} }
} }
#endif // PIDTEMP #endif // PIDTEMP

Loading…
Cancel
Save