From 00f55d44bf7bfce2cb55bf6b09787541881b0f01 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 1 Aug 2026 19:37:02 +0100 Subject: [PATCH] Update PrinterMiscPanel to modify G-code scripts for LCD and BEEPER control - Changed the script for controlling the LCD backlight to use the SET_PIN command with the appropriate pin name. - Updated the BEEPER control script to utilize the SET_PIN command, adjusting the value format for consistency in handling sound output. --- src/components/Dashboard/common/PrinterMiscPanel.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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` } }) }