Skip to content

Commit

Permalink
Ammend to 67e3bb8: FIX: Pre-seeds the extruder PWM and RPM as configu…
Browse files Browse the repository at this point in the history
…red in machines.xml
  • Loading branch information
ErikDeBruijn committed Nov 29, 2010
1 parent 0d01632 commit 683297f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/replicatorg/app/ui/controlpanel/ExtruderPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ public ExtruderPanel(MachineController machine, ToolModel t) {
field.addFocusListener(this);
field.setActionCommand("handleTextfield");
field.setText(Integer.toString(t.getMotorSpeedPWM()));
try {
driver.setMotorSpeedPWM(Integer.parseInt(field.getText()));
} catch (Exception e) {} // ignore parse errors.
field.addActionListener(this);

add(label);
Expand All @@ -187,6 +190,9 @@ public ExtruderPanel(MachineController machine, ToolModel t) {
field.addFocusListener(this);
field.setActionCommand("handleTextfield");
field.setText(Double.toString(t.getMotorSpeedRPM()));
try {
driver.setMotorRPM(Double.parseDouble(field.getText()));
} catch (Exception e) {} // ignore parse errors.
field.addActionListener(this);

add(label);
Expand Down

0 comments on commit 683297f

Please sign in to comment.