diff --git a/src/components/Dashboard/common/PrinterMiscPanel.jsx b/src/components/Dashboard/common/PrinterMiscPanel.jsx index 845de98..6422420 100644 --- a/src/components/Dashboard/common/PrinterMiscPanel.jsx +++ b/src/components/Dashboard/common/PrinterMiscPanel.jsx @@ -103,7 +103,7 @@ const PrinterMiscPanel = ({ sendObjectAction(id, 'printer', { type: 'gcodeScript', data: { - script: `SET_LCD LCD=lcd_backlight BRIGHTNESS=${value}` + script: `SET_PIN PIN=LCD_backlight_pin VALUE=${value}` } }) } @@ -114,7 +114,7 @@ const PrinterMiscPanel = ({ sendObjectAction(id, 'printer', { type: 'gcodeScript', data: { - script: `M300 S440 P200 V${Math.round(value * 100)}` + script: `SET_PIN PIN=BEEPER_pin VALUE=${Math.round(value * 1000)}.00` } }) }