Force high power mode when running belt test

This commit is contained in:
vintagepc 2020-02-07 16:14:33 -05:00 committed by GitHub
parent e184dcf1b9
commit 1384e783bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7455,6 +7455,11 @@ void lcd_belttest()
{
int _progress = 0;
bool _result = true;
#ifdef TMC2130 // Belttest requires high power mode. Enable it.
FORCE_HIGH_POWER_START;
#endif
uint16_t X = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_X));
uint16_t Y = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_Y));
lcd_belttest_print(_i("Checking X..."), X, Y);
@ -7482,6 +7487,10 @@ void lcd_belttest()
lcd_belttest_print(_i("Done"), X, Y);
#ifdef TMC2130
FORCE_HIGH_POWER_END;
#endif
KEEPALIVE_STATE(NOT_BUSY);
_delay(3000);
}