Browse Source

Use ADD_PORT_ARG for all cases

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

Loading…
Cancel
Save