Improve Zonestar keypad responsiveness (#14056)
This commit is contained in:
@ -996,8 +996,8 @@ void MarlinUI::update() {
|
||||
|
||||
uint8_t get_ADC_keyValue(void) {
|
||||
if (thermalManager.ADCKey_count >= 16) {
|
||||
const uint16_t currentkpADCValue = thermalManager.current_ADCKey_raw >> 2;
|
||||
thermalManager.current_ADCKey_raw = 0;
|
||||
const uint16_t currentkpADCValue = thermalManager.current_ADCKey_raw << 2;
|
||||
thermalManager.current_ADCKey_raw = 1024;
|
||||
thermalManager.ADCKey_count = 0;
|
||||
if (currentkpADCValue < 4000)
|
||||
for (uint8_t i = 0; i < ADC_KEY_NUM; i++) {
|
||||
|
Reference in New Issue
Block a user