mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 07:17:59 +00:00
🎨 misc. cleanup
This commit is contained in:
parent
367c11dfa2
commit
2dcfa140e9
@ -303,16 +303,16 @@ enum TimerPurpose { TP_SERIAL, TP_TONE, TP_SERVO, TP_STEP, TP_TEMP };
|
|||||||
// This cannot yet account for timers used for PWM output, such as for fans.
|
// This cannot yet account for timers used for PWM output, such as for fans.
|
||||||
static constexpr struct { TimerPurpose p; int t; } timers_in_use[] = {
|
static constexpr struct { TimerPurpose p; int t; } timers_in_use[] = {
|
||||||
#if HAS_TMC_SW_SERIAL
|
#if HAS_TMC_SW_SERIAL
|
||||||
{TP_SERIAL, get_timer_num_from_base_address(timer_serial[0])}, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
{ TP_SERIAL, get_timer_num_from_base_address(timer_serial[0]) }, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
||||||
#endif
|
#endif
|
||||||
#if ENABLED(SPEAKER)
|
#if ENABLED(SPEAKER)
|
||||||
{TP_TONE, get_timer_num_from_base_address(timer_tone[0])}, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
{ TP_TONE, get_timer_num_from_base_address(timer_tone[0]) }, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
||||||
#endif
|
#endif
|
||||||
#if HAS_SERVOS
|
#if HAS_SERVOS
|
||||||
{TP_SERVO, get_timer_num_from_base_address(timer_servo[0])}, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
{ TP_SERVO, get_timer_num_from_base_address(timer_servo[0]) }, // Set in variant.h, or as a define in platformio.h if not present in variant.h
|
||||||
#endif
|
#endif
|
||||||
{TP_STEP, STEP_TIMER},
|
{ TP_STEP, STEP_TIMER },
|
||||||
{TP_TEMP, TEMP_TIMER},
|
{ TP_TEMP, TEMP_TIMER },
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr bool verify_no_timer_conflicts() {
|
static constexpr bool verify_no_timer_conflicts() {
|
||||||
|
@ -241,7 +241,6 @@ void report_current_position_projected() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(AUTO_REPORT_POSITION)
|
#if ENABLED(AUTO_REPORT_POSITION)
|
||||||
//struct PositionReport { void report() { report_current_position_projected(); } };
|
|
||||||
AutoReporter<PositionReport> position_auto_reporter;
|
AutoReporter<PositionReport> position_auto_reporter;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user