weak link stub (#3258)

This commit is contained in:
Matthew Kennedy 2021-09-22 11:33:25 -07:00 committed by GitHub
parent ff0c623ca6
commit 34c98c1485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,11 @@ bool Engine::onKnockSenseCompleted(uint8_t cylinderIndex, float dbv, efitick_t l
} }
// This callback is to be implemented by the knock sense driver // This callback is to be implemented by the knock sense driver
void onStartKnockSampling(uint8_t cylinderIndex, float samplingTimeSeconds, uint8_t channelIdx); __attribute__((weak)) void onStartKnockSampling(uint8_t cylinderIndex, float samplingTimeSeconds, uint8_t channelIdx) {
UNUSED(cylinderIndex);
UNUSED(samplingTimeSeconds);
UNUSED(channelIdx);
}
static uint8_t cylinderIndexCopy; static uint8_t cylinderIndexCopy;