From 08675612d5425d6a3824d0113b2a5c4072193a4d Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 26 Mar 2023 21:36:40 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20AnyCubic=20Vyper=20Process?= =?UTF-8?q?PanelRequest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to #25405 --- Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp b/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp index 9487f22e89..e9e80101f6 100644 --- a/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp +++ b/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp @@ -1004,7 +1004,7 @@ namespace Anycubic { if (0x83 == data_buf[0]) { control_index = uint16_t(data_buf[1] << 8) | uint16_t(data_buf[2]); - if (control_index == KEY_ADDRESS) { // is KEY + if ((control_index & 0xF000) == KEY_ADDRESS) { // is KEY //key_index = control_index; key_value = (uint16_t(data_buf[4]) << 8) | uint16_t(data_buf[5]); } @@ -1102,7 +1102,7 @@ namespace Anycubic { } */ } - else if (data_buf[0] == 0x82) { + else if (0x82 == data_buf[0]) { // send_cmd_to_pc(cmd ,start ); } }