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