Sfoglia il codice sorgente

Don't inline fSetMmuMode

Saves 8 bytes of flash
Guðni Már Gilbert 1 anno fa
parent
commit
4c27d057b8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Firmware/util.cpp

+ 1 - 1
Firmware/util.cpp

@@ -501,7 +501,7 @@ lcd_update_enable(true);           // display / status-line recovery
      }
 }
 
-void fSetMmuMode(bool bMMu) {
+void __attribute__((noinline)) fSetMmuMode(bool bMMu) {
     if (bMMu) {
         nPrinterType = pgm_read_word(&_nPrinterMmuType);
         sPrinterName = _sPrinterMmuName;