Browse Source

🩹 Fix linker error (transfer_port_index)

Scott Lahteine 2 years ago
parent
commit
ba0b772d84
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/sd/cardreader.cpp

+ 2
- 2
Marlin/src/sd/cardreader.cpp View File

@@ -72,8 +72,8 @@ char CardReader::filename[FILENAME_LENGTH], CardReader::longFilename[LONG_FILENA
72 72
 
73 73
 IF_DISABLED(NO_SD_AUTOSTART, uint8_t CardReader::autofile_index); // = 0
74 74
 
75
-#if BOTH(HAS_MULTI_SERIAL, BINARY_FILE_TRANSFER)
76
-  serial_index_t CardReader::transfer_port_index;
75
+#if ENABLED(BINARY_FILE_TRANSFER)
76
+  serial_index_t IF_DISABLED(HAS_MULTI_SERIAL, constexpr) CardReader::transfer_port_index;
77 77
 #endif
78 78
 
79 79
 // private:

Loading…
Cancel
Save