tune menu updated
This commit is contained in:
parent
ca3ba55ca7
commit
a369c7900e
|
|
@ -1362,9 +1362,8 @@ void EEPROM_read_st(int pos, uint8_t* value, uint8_t size)
|
||||||
|
|
||||||
void digipot_init() //Initialize Digipot Motor Current
|
void digipot_init() //Initialize Digipot Motor Current
|
||||||
{
|
{
|
||||||
|
|
||||||
EEPROM_read_st(EEPROM_SILENT,(uint8_t*)&SilentMode,sizeof(SilentMode));
|
EEPROM_read_st(EEPROM_SILENT,(uint8_t*)&SilentMode,sizeof(SilentMode));
|
||||||
|
SilentModeMenu = SilentMode;
|
||||||
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
|
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
|
||||||
if(SilentMode == 0){
|
if(SilentMode == 0){
|
||||||
const uint8_t digipot_motor_current[] = DIGIPOT_MOTOR_CURRENT_LOUD;
|
const uint8_t digipot_motor_current[] = DIGIPOT_MOTOR_CURRENT_LOUD;
|
||||||
|
|
|
||||||
|
|
@ -5264,6 +5264,18 @@ static void lcd_autostart_sd()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void lcd_silent_mode_set_tune() {
|
||||||
|
switch (SilentModeMenu) {
|
||||||
|
case 0: SilentModeMenu = 1; break;
|
||||||
|
case 1: SilentModeMenu = 2; break;
|
||||||
|
case 2: SilentModeMenu = 0; break;
|
||||||
|
default: SilentModeMenu = 0; break;
|
||||||
|
}
|
||||||
|
eeprom_update_byte((unsigned char *)EEPROM_SILENT, SilentModeMenu);
|
||||||
|
digipot_init();
|
||||||
|
lcd_goto_menu(lcd_tune_menu, 9);
|
||||||
|
}
|
||||||
|
|
||||||
static void lcd_colorprint_change() {
|
static void lcd_colorprint_change() {
|
||||||
|
|
||||||
enquecommand_P(PSTR("M600"));
|
enquecommand_P(PSTR("M600"));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue