clean up and changes from testing
This commit is contained in:
		| @@ -1000,14 +1000,13 @@ void process_commands() | |||||||
|         SERIAL_ERROR_START; |         SERIAL_ERROR_START; | ||||||
|         SERIAL_ERRORLNPGM(MSG_ERR_NO_THERMISTORS); |         SERIAL_ERRORLNPGM(MSG_ERR_NO_THERMISTORS); | ||||||
|       #endif |       #endif | ||||||
|       #ifdef PIDTEMP |  | ||||||
|         SERIAL_PROTOCOLPGM(" @:"); |         SERIAL_PROTOCOLPGM(" @:"); | ||||||
|         SERIAL_PROTOCOL(getHeaterPower(tmp_extruder));   |         SERIAL_PROTOCOL(getHeaterPower(tmp_extruder));   | ||||||
|       #endif |  | ||||||
|       #ifdef PIDTEMPBED |  | ||||||
|         SERIAL_PROTOCOLPGM(" B@:"); |         SERIAL_PROTOCOLPGM(" B@:"); | ||||||
|         SERIAL_PROTOCOL(getHeaterPower(-1));   |         SERIAL_PROTOCOL(getHeaterPower(-1));   | ||||||
|       #endif |  | ||||||
|         SERIAL_PROTOCOLLN(""); |         SERIAL_PROTOCOLLN(""); | ||||||
|       return; |       return; | ||||||
|       break; |       break; | ||||||
|   | |||||||
| @@ -99,6 +99,8 @@ static volatile bool temp_meas_ready = false; | |||||||
|   static float pid_error_bed; |   static float pid_error_bed; | ||||||
|   static float temp_iState_min_bed; |   static float temp_iState_min_bed; | ||||||
|   static float temp_iState_max_bed; |   static float temp_iState_max_bed; | ||||||
|  | #else //PIDTEMPBED | ||||||
|  | 	static unsigned long  previous_millis_bed_heater; | ||||||
| #endif //PIDTEMPBED | #endif //PIDTEMPBED | ||||||
|   static unsigned char soft_pwm[EXTRUDERS]; |   static unsigned char soft_pwm[EXTRUDERS]; | ||||||
|   static unsigned char soft_pwm_bed; |   static unsigned char soft_pwm_bed; | ||||||
| @@ -640,9 +642,11 @@ void tp_init() | |||||||
| #ifdef PIDTEMP | #ifdef PIDTEMP | ||||||
|     temp_iState_min[e] = 0.0; |     temp_iState_min[e] = 0.0; | ||||||
|     temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki; |     temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki; | ||||||
|  | #endif //PIDTEMP | ||||||
|  | #ifdef PIDTEMPBED | ||||||
|     temp_iState_min_bed = 0.0; |     temp_iState_min_bed = 0.0; | ||||||
|     temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi; |     temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi; | ||||||
| #endif //PIDTEMP | #endif //PIDTEMPBED | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   #if (HEATER_0_PIN > -1)  |   #if (HEATER_0_PIN > -1)  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user