only:cleaner guards

This commit is contained in:
rusefillc 2024-03-15 11:45:29 -06:00
parent 0a024b8527
commit 826bf8e308
3 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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"