Browse Source

Use ADD_PORT_ARG for all cases

Scott Lahteine 6 years ago
parent
commit
90d011cc48
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/module/configuration_store.cpp

+ 4
- 4
Marlin/src/module/configuration_store.cpp View File

@@ -1421,7 +1421,7 @@ void MarlinSettings::postprocess() {
1421 1421
 
1422 1422
     #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
1423 1423
       if (!validating) report(
1424
-        #if NUM_SERIAL > 1
1424
+        #if ADD_PORT_ARG
1425 1425
           port
1426 1426
         #endif
1427 1427
       );
@@ -1432,13 +1432,13 @@ void MarlinSettings::postprocess() {
1432 1432
   }
1433 1433
 
1434 1434
   bool MarlinSettings::validate(
1435
-    #if NUM_SERIAL > 1
1435
+    #if ADD_PORT_ARG
1436 1436
       const int8_t port/*=-1*/
1437 1437
     #endif
1438 1438
   ) {
1439 1439
     validating = true;
1440 1440
     const bool success = _load(
1441
-      #if NUM_SERIAL > 1
1441
+      #if ADD_PORT_ARG
1442 1442
         port
1443 1443
       #endif
1444 1444
     );
@@ -1838,7 +1838,7 @@ void MarlinSettings::reset(
1838 1838
    * Unless specifically disabled, M503 is available even without EEPROM
1839 1839
    */
1840 1840
   void MarlinSettings::report(const bool forReplay
1841
-    #if NUM_SERIAL > 1
1841
+    #if ADD_PORT_ARG
1842 1842
       , const int8_t port/*=-1*/
1843 1843
     #endif
1844 1844
   ) {

Loading…
Cancel
Save