optimisation: compiler should not inline SetFilamentLoaded

Change in memory:
Flash: -130 bytes
SRAM: 0 bytes
pull/244/head
Guðni Már Gilbert 2022-11-18 20:23:29 +00:00
parent eba2c298d1
commit eb53750028
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public:
/// Sets the filament loaded flag value, usually after some command/operation.
/// Also updates the EEPROM records accordingly
/// @param newFilamentLoaded new state
void SetFilamentLoaded(uint8_t slot, FilamentLoadState newFilamentLoaded);
void __attribute__((noinline)) SetFilamentLoaded(uint8_t slot, FilamentLoadState newFilamentLoaded);
/// @returns the total number of MMU errors so far
/// Errors are stored in the EEPROM