mirror of https://github.com/rusefi/rusefi.git
only:cleaner guards
This commit is contained in:
parent
0a024b8527
commit
826bf8e308
|
@ -50,10 +50,10 @@ static void setPin(const CANRxFrame& frame, int value) {
|
|||
criticalError("QC pin index %d", outputIndex);
|
||||
return;
|
||||
}
|
||||
#if EFI_GPIO_HARDWARE && EFI_PROD_CODE
|
||||
Gpio* boardOutputs = getBoardMetaOutputs();
|
||||
criticalAssertVoid(boardOutputs != nullptr, "outputs not defined");
|
||||
Gpio pin = boardOutputs[outputIndex];
|
||||
#if EFI_GPIO_HARDWARE && EFI_PROD_CODE
|
||||
|
||||
int hwIndex = brainPin_to_index(pin);
|
||||
if (engine->pinRepository.getBrainUsedPin(hwIndex) == nullptr) {
|
||||
|
|
|
@ -61,6 +61,7 @@ static void endAveraging(MapAverager* arg);
|
|||
|
||||
static size_t currentMapAverager = 0;
|
||||
|
||||
#if EFI_ENGINE_CONTROL && EFI_PROD_CODE
|
||||
static void startAveraging(scheduling_s *endAveragingScheduling) {
|
||||
efiAssertVoid(ObdCode::CUSTOM_ERR_6649, hasLotsOfRemainingStack(), "lowstck#9");
|
||||
|
||||
|
@ -73,6 +74,7 @@ static void startAveraging(scheduling_s *endAveragingScheduling) {
|
|||
scheduleByAngle(endAveragingScheduling, getTimeNowNt(), engine->engineState.mapAveragingDuration,
|
||||
{ endAveraging, &averager });
|
||||
}
|
||||
#endif
|
||||
|
||||
void MapAverager::start() {
|
||||
chibios_rt::CriticalSectionLocker csl;
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
* Kot_dnz 2014
|
||||
*/
|
||||
|
||||
#if EFI_UART_GPS
|
||||
#include "pch.h"
|
||||
|
||||
#if EFI_UART_GPS
|
||||
#include <string.h>
|
||||
|
||||
#include "rusefi_types.h"
|
||||
|
|
Loading…
Reference in New Issue