diff --git a/src/server/helpers/config-generation/toolhead.ts b/src/server/helpers/config-generation/toolhead.ts index 8f596ae2d..ecf4ebf6c 100644 --- a/src/server/helpers/config-generation/toolhead.ts +++ b/src/server/helpers/config-generation/toolhead.ts @@ -432,7 +432,7 @@ export class ToolheadGenerator extends ToolheadHelp result.push(`cycle_time: 0.00004`); if (this.toolboardPins?.['4p_fan_part_cooling_tach_pin'] != null) { result.push( - `tachometer_pin: ^${this.isToolboardPinInverted(this.toolboardPins?.['4p_fan_part_cooling_tach_pin']) ? '!' : ''}${this.toolboardPins?.['4p_fan_part_cooling_tach_pin']}`, + `tachometer_pin: ^${this.isToolboardPinInverted(this.toolboardPins?.['4p_fan_part_cooling_tach_pin']) ? '!' : ''}${this.getPinPrefix()}${this.toolboardPins?.['4p_fan_part_cooling_tach_pin']}`, ); result.push(`tachometer_poll_interval: 0.0005`); } @@ -499,7 +499,7 @@ export class ToolheadGenerator extends ToolheadHelp result.push(`cycle_time: 0.00004`); if (this.toolboardPins?.['4p_toolhead_cooling_tach_pin'] != null) { result.push( - `tachometer_pin: ^${this.isToolboardPinInverted(this.toolboardPins?.['4p_toolhead_cooling_tach_pin']) ? '!' : ''}${this.toolboardPins?.['4p_toolhead_cooling_tach_pin']}`, + `tachometer_pin: ^${this.isToolboardPinInverted(this.toolboardPins?.['4p_toolhead_cooling_tach_pin']) ? '!' : ''}${this.getPinPrefix()}${this.toolboardPins?.['4p_toolhead_cooling_tach_pin']}`, ); result.push(`tachometer_poll_interval: 0.0005`); }