Browse Source

Use ADD_PORT_ARG for all cases

pull/1/head
Scott Lahteine 7 years ago
parent
commit
90d011cc48
  1. 8
      Marlin/src/module/configuration_store.cpp

8
Marlin/src/module/configuration_store.cpp

@ -1421,7 +1421,7 @@ void MarlinSettings::postprocess() {
#if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503) #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
if (!validating) report( if (!validating) report(
#if NUM_SERIAL > 1 #if ADD_PORT_ARG
port port
#endif #endif
); );
@ -1432,13 +1432,13 @@ void MarlinSettings::postprocess() {
} }
bool MarlinSettings::validate( bool MarlinSettings::validate(
#if NUM_SERIAL > 1 #if ADD_PORT_ARG
const int8_t port/*=-1*/ const int8_t port/*=-1*/
#endif #endif
) { ) {
validating = true; validating = true;
const bool success = _load( const bool success = _load(
#if NUM_SERIAL > 1 #if ADD_PORT_ARG
port port
#endif #endif
); );
@ -1838,7 +1838,7 @@ void MarlinSettings::reset(
* Unless specifically disabled, M503 is available even without EEPROM * Unless specifically disabled, M503 is available even without EEPROM
*/ */
void MarlinSettings::report(const bool forReplay void MarlinSettings::report(const bool forReplay
#if NUM_SERIAL > 1 #if ADD_PORT_ARG
, const int8_t port/*=-1*/ , const int8_t port/*=-1*/
#endif #endif
) { ) {

Loading…
Cancel
Save