settings tweak

This commit is contained in:
Scott Lahteine
2021-10-14 18:56:32 -05:00
parent 385bab2f36
commit 3db4452d28
2 changed files with 9 additions and 9 deletions
-1
View File
@@ -37,7 +37,6 @@
#include "../../feature/bltouch.h"
#endif
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
#include "../../core/debug_out.h"
+9 -8
View File
@@ -277,7 +277,7 @@ typedef struct SettingsDataStruct {
// BLTOUCH
//
bool bltouch_last_written_mode;
bool high_speed_mode;
bool bltouch_high_speed_mode;
//
// Kinematic Settings
@@ -863,9 +863,9 @@ void MarlinSettings::postprocess() {
const bool bltouch_last_written_mode = TERN(BLTOUCH, bltouch.last_written_mode, false);
EEPROM_WRITE(bltouch_last_written_mode);
_FIELD_TEST(high_speed_mode);
const bool high_speed_mode = TERN(BLTOUCH, bltouch.high_speed_mode, false);
EEPROM_WRITE(high_speed_mode);
_FIELD_TEST(bltouch_high_speed_mode);
const bool bltouch_high_speed_mode = TERN(BLTOUCH, bltouch.high_speed_mode, false);
EEPROM_WRITE(bltouch_high_speed_mode);
}
//
@@ -1738,13 +1738,13 @@ void MarlinSettings::postprocess() {
#endif
EEPROM_READ(bltouch_last_written_mode);
_FIELD_TEST(high_speed_mode);
_FIELD_TEST(bltouch_high_speed_mode);
#if ENABLED(BLTOUCH)
const bool &high_speed_mode = bltouch.high_speed_mode;
const bool &bltouch_high_speed_mode = bltouch.high_speed_mode;
#else
bool high_speed_mode;
bool bltouch_high_speed_mode;
#endif
EEPROM_READ(high_speed_mode);
EEPROM_READ(bltouch_high_speed_mode);
}
//
@@ -2745,6 +2745,7 @@ void MarlinSettings::reset() {
// BLTouch
//
TERN_(BLTOUCH_HS_MODE, bltouch.high_speed_mode = true);
//
// Kinematic settings
//