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
7eea000f
Commit
7eea000f
authored
Nov 17, 2017
by
Bob-the-Kuhn
Browse files
Options
Downloads
Patches
Plain Diff
E0 auto fan fixes
parent
a7ff4f57
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/src/module/temperature.cpp
+6
-2
6 additions, 2 deletions
Marlin/src/module/temperature.cpp
with
6 additions
and
2 deletions
Marlin/src/module/temperature.cpp
+
6
−
2
View file @
7eea000f
...
...
@@ -515,7 +515,7 @@ int Temperature::getHeaterPower(int heater) {
#if HAS_AUTO_FAN
void
Temperature
::
checkExtruderAutoFans
()
{
static
const
in
t8
_t
fanPin
[]
PROGMEM
=
{
E0_AUTO_FAN_PIN
,
E1_AUTO_FAN_PIN
,
E2_AUTO_FAN_PIN
,
E3_AUTO_FAN_PIN
,
E4_AUTO_FAN_PIN
};
static
const
p
in_t
fanPin
[]
PROGMEM
=
{
E0_AUTO_FAN_PIN
,
E1_AUTO_FAN_PIN
,
E2_AUTO_FAN_PIN
,
E3_AUTO_FAN_PIN
,
E4_AUTO_FAN_PIN
};
static
const
uint8_t
fanBit
[]
PROGMEM
=
{
0
,
AUTO_1_IS_0
?
0
:
1
,
...
...
@@ -531,7 +531,11 @@ int Temperature::getHeaterPower(int heater) {
uint8_t
fanDone
=
0
;
for
(
uint8_t
f
=
0
;
f
<
COUNT
(
fanPin
);
f
++
)
{
int8_t
pin
=
pgm_read_byte
(
&
fanPin
[
f
]);
#ifdef ARDUINO
pin_t
pin
=
pgm_read_byte
(
&
fanPin
[
f
]);
#else
pin_t
pin
=
fanPin
[
f
];
#endif
const
uint8_t
bit
=
pgm_read_byte
(
&
fanBit
[
f
]);
if
(
pin
>=
0
&&
!
TEST
(
fanDone
,
bit
))
{
uint8_t
newFanSpeed
=
TEST
(
fanState
,
bit
)
?
EXTRUDER_AUTO_FAN_SPEED
:
0
;
...
...
...
...
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