Skip to content

Commit 377da14

Browse files
committed
Force calculateFuelIgnitionChannelCut() inline
1 parent 7f31482 commit 377da14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

speeduino/engineProtection.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "preprocessor.h"
77
#include "decoders.h"
88
#include "units.h"
9+
#include "preprocessor.h"
910

1011
TESTABLE_STATIC uint32_t oilProtEndTime;
1112
TESTABLE_CONSTEXPR table2D_u8_u8_4 oilPressureProtectTable(&configPage10.oilPressureProtRPM, &configPage10.oilPressureProtMins);
@@ -188,7 +189,7 @@ TESTABLE_CONSTEXPR table2D_i8_u8_4 rollingCutTable(&configPage15.rollingProtRPMD
188189
// Test-hookable RNG for rolling cut (defaults to existing random1to100)
189190
TESTABLE_STATIC uint8_t (*rollingCutRandFunc)(void) = random1to100;
190191

191-
statuses::scheduler_cut_t calculateFuelIgnitionChannelCut(statuses &current, const config2 &page2, const config4 &page4, const config6 &page6, const config9 &page9, const config10 &page10)
192+
BEGIN_LTO_ALWAYS_INLINE(statuses::scheduler_cut_t) calculateFuelIgnitionChannelCut(statuses &current, const config2 &page2, const config4 &page4, const config6 &page6, const config9 &page9, const config10 &page10)
192193
{
193194
if (getDecoderStatus().syncStatus==SyncStatus::None)
194195
{
@@ -323,4 +324,5 @@ statuses::scheduler_cut_t calculateFuelIgnitionChannelCut(statuses &current, con
323324
}
324325

325326
return cutState;
326-
}
327+
}
328+
END_LTO_INLINE()

0 commit comments

Comments
 (0)