Skip to content

Commit

Permalink
ConfigGen: fix tachometer pin prefix on 4-pin toolboard headers
Browse files Browse the repository at this point in the history
Github: #29
  • Loading branch information
miklschmidt committed Dec 27, 2024
1 parent ffdaa46 commit 82f5735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/helpers/config-generation/toolhead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class ToolheadGenerator<IsToolboard extends boolean> 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`);
}
Expand Down Expand Up @@ -499,7 +499,7 @@ export class ToolheadGenerator<IsToolboard extends boolean> 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`);
}
Expand Down

0 comments on commit 82f5735

Please sign in to comment.