Additional follow-up the PR #3631(Encapsulate S... #3667
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional follow-up the PR #3631(Encapsulate Stepper, Planner, Endstops in singleton classes)
・Change from
abort_on_endstop_hit
tostepper.abort_on_endstop_hit
in endstop.cpp, Marlin_main.cpp, and ultralcd.cpp・Add include path to
cardreader.h
andtemperature.h
in endstop.cpp(forCardReader
class anddisable_all_heaters()
)It fix compilation error when
ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
andSDSUPPORT
are enabled.・Change from
digipot_current()
tostepper.digipot_current()
in Marlin_main.cpp・Change from
digitalPotWrite()
tostepper.digitalPotWrite()
in Marlin_main.cppIt fix compilation errors when
HAS_DIGIPOTSS
is enabled.・Change from
microstep_mode()
tostepper.microstep_mode()
in Marlin_main.cpp・Change attribute of
microstep_mode()
from private to public in stepper.h・Change from
microstep_readings()
tostepper.microstep_readings()
in Marlin_main.cpp・Change from
microstep_ms()
tostepper.microstep_ms()
in Marlin_main.It fix compilation errors when HAS_MICROSTEPS is enabled.