From 82f5735419e7f4c13d416e3673035ec1dbd0fa76 Mon Sep 17 00:00:00 2001 From: Mikkel Schmidt Date: Fri, 27 Dec 2024 18:50:28 +0100 Subject: [PATCH] ConfigGen: fix tachometer pin prefix on 4-pin toolboard headers Github: #29 --- src/server/helpers/config-generation/toolhead.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`); }