|
@@ -62,7 +62,7 @@ extern float Kp,Ki,Kd,Kc;
|
62
|
62
|
FORCE_INLINE float degHotend0(){ return analog2temp(current_raw[TEMPSENSOR_HOTEND_0]);};
|
63
|
63
|
FORCE_INLINE float degHotend1(){ return analog2temp(current_raw[TEMPSENSOR_HOTEND_1]);};
|
64
|
64
|
FORCE_INLINE float degBed() { return analog2tempBed(current_raw[TEMPSENSOR_BED]);};
|
65
|
|
-inline float degHotend(uint8_t extruder){
|
|
65
|
+FORCE_INLINE float degHotend(uint8_t extruder){
|
66
|
66
|
if(extruder == 0) return analog2temp(current_raw[TEMPSENSOR_HOTEND_0]);
|
67
|
67
|
if(extruder == 1) return analog2temp(current_raw[TEMPSENSOR_HOTEND_1]);
|
68
|
68
|
};
|
|
@@ -74,7 +74,7 @@ inline float degTargetHotend(uint8_t extruder){
|
74
|
74
|
if(extruder == 1) return analog2temp(target_raw[TEMPSENSOR_HOTEND_1]);
|
75
|
75
|
};
|
76
|
76
|
|
77
|
|
-inline float degTargetBed() { return analog2tempBed(target_raw[TEMPSENSOR_BED]);};
|
|
77
|
+FORCE_INLINE float degTargetBed() { return analog2tempBed(target_raw[TEMPSENSOR_BED]);};
|
78
|
78
|
|
79
|
79
|
FORCE_INLINE void setTargetHotend0(const float &celsius)
|
80
|
80
|
{
|
|
@@ -84,27 +84,27 @@ FORCE_INLINE void setTargetHotend0(const float &celsius)
|
84
|
84
|
#endif //PIDTEMP
|
85
|
85
|
};
|
86
|
86
|
FORCE_INLINE void setTargetHotend1(const float &celsius) { target_raw[TEMPSENSOR_HOTEND_1]=temp2analog(celsius);};
|
87
|
|
-inline float setTargetHotend(const float &celcius, uint8_t extruder){
|
|
87
|
+FORCE_INLINE float setTargetHotend(const float &celcius, uint8_t extruder){
|
88
|
88
|
if(extruder == 0) setTargetHotend0(celcius);
|
89
|
89
|
if(extruder == 1) setTargetHotend1(celcius);
|
90
|
90
|
};
|
91
|
|
-inline void setTargetBed(const float &celsius) { target_raw[TEMPSENSOR_BED ]=temp2analogBed(celsius);};
|
|
91
|
+FORCE_INLINE void setTargetBed(const float &celsius) { target_raw[TEMPSENSOR_BED ]=temp2analogBed(celsius);};
|
92
|
92
|
|
93
|
93
|
FORCE_INLINE bool isHeatingHotend0() {return target_raw[TEMPSENSOR_HOTEND_0] > current_raw[TEMPSENSOR_HOTEND_0];};
|
94
|
94
|
FORCE_INLINE bool isHeatingHotend1() {return target_raw[TEMPSENSOR_HOTEND_1] > current_raw[TEMPSENSOR_HOTEND_1];};
|
95
|
|
-inline float isHeatingHotend(uint8_t extruder){
|
|
95
|
+FORCE_INLINE float isHeatingHotend(uint8_t extruder){
|
96
|
96
|
if(extruder == 0) return target_raw[TEMPSENSOR_HOTEND_0] > current_raw[TEMPSENSOR_HOTEND_0];
|
97
|
97
|
if(extruder == 1) return target_raw[TEMPSENSOR_HOTEND_1] > current_raw[TEMPSENSOR_HOTEND_1];
|
98
|
98
|
};
|
99
|
|
-inline bool isHeatingBed() {return target_raw[TEMPSENSOR_BED] > current_raw[TEMPSENSOR_BED];};
|
|
99
|
+FORCE_INLINE bool isHeatingBed() {return target_raw[TEMPSENSOR_BED] > current_raw[TEMPSENSOR_BED];};
|
100
|
100
|
|
101
|
101
|
FORCE_INLINE bool isCoolingHotend0() {return target_raw[TEMPSENSOR_HOTEND_0] < current_raw[TEMPSENSOR_HOTEND_0];};
|
102
|
102
|
FORCE_INLINE bool isCoolingHotend1() {return target_raw[TEMPSENSOR_HOTEND_1] < current_raw[TEMPSENSOR_HOTEND_1];};
|
103
|
|
-inline float isCoolingHotend(uint8_t extruder){
|
|
103
|
+FORCE_INLINE float isCoolingHotend(uint8_t extruder){
|
104
|
104
|
if(extruder == 0) return target_raw[TEMPSENSOR_HOTEND_0] < current_raw[TEMPSENSOR_HOTEND_0];
|
105
|
105
|
if(extruder == 1) return target_raw[TEMPSENSOR_HOTEND_1] < current_raw[TEMPSENSOR_HOTEND_1];
|
106
|
106
|
};
|
107
|
|
-inline bool isCoolingBed() {return target_raw[TEMPSENSOR_BED] < current_raw[TEMPSENSOR_BED];};
|
|
107
|
+FORCE_INLINE bool isCoolingBed() {return target_raw[TEMPSENSOR_BED] < current_raw[TEMPSENSOR_BED];};
|
108
|
108
|
|
109
|
109
|
void disable_heater();
|
110
|
110
|
void setWatch();
|