Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #20085, POWER_LOSS_RECOVERY assumes fan exists #20096

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

ellensp
Copy link
Contributor

@ellensp ellensp commented Nov 11, 2020

Requirements

enable POWER_LOSS_RECOVERY
enable SDSUPPORT needed by POWER_LOSS_RECOVERY
define FAN_PIN -1

Description

This will fail to compile with the following error.

Marlin\src\feature\powerloss.cpp: In static member function 'static void PrintJobRecovery::resume()':
Marlin\src\feature\powerloss.cpp:436:13: error: 'i' was not declared in this scope
FANS_LOOP(i) {
^
Marlin\src\feature\powerloss.cpp:436:14: error: 'FANS_LOOP' was not declared in this scope
FANS_LOOP(i) {

Added a #if HAS_FAN block around offending code.

Benefits

This compiles as expected

Related Issues

Issue #20085

@thinkyhead thinkyhead merged commit 7216b8f into MarlinFirmware:bugfix-2.0.x Nov 11, 2020
FhlostonParadise pushed a commit to FhlostonParadise/Marlin that referenced this pull request Nov 21, 2020
Kannix2005 pushed a commit to Kannix2005/Marlin-1 that referenced this pull request Dec 7, 2020
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
tharts pushed a commit to tharts/Marlin that referenced this pull request Jan 6, 2021
dpreed pushed a commit to dpreed/Marlin_2.0.x that referenced this pull request Feb 5, 2021
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
@ellensp ellensp deleted the bugfix-2.0.x-#20085 branch March 8, 2021 00:28
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 28, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
thinkyhead pushed a commit that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants