optimisation: always inline ReportingRAII

Tested on MK3S+ using the LCD.

Change in memory:
Flash: -80 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-05-13 18:07:13 +00:00
parent 162f8b4cc8
commit 90322a7181
1 changed files with 2 additions and 2 deletions

View File

@ -194,11 +194,11 @@ void MMU2::CheckFINDARunout() {
struct ReportingRAII {
CommandInProgress cip;
explicit inline ReportingRAII(CommandInProgress cip)
explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
: cip(cip) {
BeginReport(cip, (uint16_t)ProgressCode::EngagingIdler);
}
inline ~ReportingRAII() {
inline __attribute__((always_inline)) ~ReportingRAII() {
EndReport(cip, (uint16_t)ProgressCode::OK);
}
};