Use ADD_PORT_ARG for all cases

This commit is contained in:
Scott Lahteine 2018-01-22 06:27:22 -06:00
parent 51c7b5d46f
commit 90d011cc48

View File

@ -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
) { ) {