Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
043be285
Commit
043be285
authored
Mar 23, 2017
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Use "& 0x3F" instead of "% 64"
parent
6a040a69
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/temperature.cpp
+4
-4
4 additions, 4 deletions
Marlin/temperature.cpp
with
4 additions
and
4 deletions
Marlin/temperature.cpp
+
4
−
4
View file @
043be285
...
@@ -1743,9 +1743,9 @@ void Temperature::isr() {
...
@@ -1743,9 +1743,9 @@ void Temperature::isr() {
// increment slow_pwm_count only every 64th pwm_count,
// increment slow_pwm_count only every 64th pwm_count,
// i.e. yielding a PWM frequency of 16/128 Hz (8s).
// i.e. yielding a PWM frequency of 16/128 Hz (8s).
if
(((
pwm_count
>>
SOFT_PWM_SCALE
)
%
64
)
==
0
)
{
if
(((
pwm_count
>>
SOFT_PWM_SCALE
)
&
0x3F
)
==
0
)
{
slow_pwm_count
++
;
slow_pwm_count
++
;
slow_pwm_count
&=
0x7
f
;
slow_pwm_count
&=
0x7
F
;
// EXTRUDER 0
// EXTRUDER 0
if
(
state_timer_heater_0
>
0
)
state_timer_heater_0
--
;
if
(
state_timer_heater_0
>
0
)
state_timer_heater_0
--
;
...
@@ -1761,7 +1761,7 @@ void Temperature::isr() {
...
@@ -1761,7 +1761,7 @@ void Temperature::isr() {
#if HAS_HEATER_BED
#if HAS_HEATER_BED
if
(
state_timer_heater_BED
>
0
)
state_timer_heater_BED
--
;
if
(
state_timer_heater_BED
>
0
)
state_timer_heater_BED
--
;
#endif
#endif
}
// (pwm_count
% 64
) == 0
}
//
(
(pwm_count
>> SOFT_PWM_SCALE) & 0x3F
) == 0
#endif // SLOW_PWM_HEATERS
#endif // SLOW_PWM_HEATERS
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment