File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,15 @@ void HotendIdleProtection::check_hotends(const millis_t &ms) {
55
55
if (!do_prot)
56
56
next_protect_ms = 0 ; // No hotends are hot so cancel timeout
57
57
else if (!next_protect_ms) // Timeout is possible?
58
- next_protect_ms = ms + cfg. timeout * 1000 ; // Start timeout if not already set
58
+ next_protect_ms = ms + 1000UL * cfg. timeout ; // Start timeout if not already set
59
59
}
60
60
61
61
void HotendIdleProtection::check_e_motion (const millis_t &ms) {
62
62
static float old_e_position = 0 ;
63
63
if (old_e_position != current_position.e ) {
64
- old_e_position = current_position.e ; // Track filament motion
65
- if (next_protect_ms) // If some heater is on then...
66
- next_protect_ms = ms + cfg. timeout * 1000 ; // ...delay the timeout till later
64
+ old_e_position = current_position.e ; // Track filament motion
65
+ if (next_protect_ms) // If some heater is on then...
66
+ next_protect_ms = ms + 1000UL * cfg. timeout ; // ...delay the timeout till later
67
67
}
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments