Add typedef celsius_t (#21374)
This commit is contained in:
@ -69,7 +69,7 @@ void GcodeSuite::M104() {
|
||||
#endif
|
||||
|
||||
bool got_temp = false;
|
||||
int16_t temp = 0;
|
||||
celsius_t temp = 0;
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
@ -145,7 +145,7 @@ void GcodeSuite::M109() {
|
||||
#endif
|
||||
|
||||
bool got_temp = false;
|
||||
int16_t temp = 0;
|
||||
celsius_t temp = 0;
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
@ -161,7 +161,7 @@ void GcodeSuite::M109() {
|
||||
if (!got_temp) {
|
||||
no_wait_for_cooling = parser.seenval('S');
|
||||
got_temp = no_wait_for_cooling || parser.seenval('R');
|
||||
if (got_temp) temp = int16_t(parser.value_celsius());
|
||||
if (got_temp) temp = parser.value_celsius();
|
||||
}
|
||||
|
||||
if (got_temp) {
|
||||
|
@ -44,7 +44,7 @@ void GcodeSuite::M140() {
|
||||
if (DEBUGGING(DRYRUN)) return;
|
||||
|
||||
bool got_temp = false;
|
||||
int16_t temp = 0;
|
||||
celsius_t temp = 0;
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
@ -94,7 +94,7 @@ void GcodeSuite::M190() {
|
||||
if (DEBUGGING(DRYRUN)) return;
|
||||
|
||||
bool got_temp = false;
|
||||
int16_t temp = 0;
|
||||
celsius_t temp = 0;
|
||||
|
||||
// Accept 'I' if temperature presets are defined
|
||||
#if PREHEAT_COUNT
|
||||
@ -110,7 +110,7 @@ void GcodeSuite::M190() {
|
||||
if (!got_temp) {
|
||||
no_wait_for_cooling = parser.seenval('S');
|
||||
got_temp = no_wait_for_cooling || parser.seenval('R');
|
||||
if (got_temp) temp = int16_t(parser.value_celsius());
|
||||
if (got_temp) temp = parser.value_celsius();
|
||||
}
|
||||
|
||||
if (!got_temp) return;
|
||||
|
Reference in New Issue
Block a user