diff --git a/firmware/controllers/actuators/alternator_controller.h b/firmware/controllers/actuators/alternator_controller.h index 8e3fc8d44a..42f3a00c6c 100644 --- a/firmware/controllers/actuators/alternator_controller.h +++ b/firmware/controllers/actuators/alternator_controller.h @@ -7,8 +7,8 @@ * @author Andrey Belomutskiy, (c) 2012-2020 * */ -#ifndef ALTERNATORCONTROLLER_H_ -#define ALTERNATORCONTROLLER_H_ + +#pragma once #include "engine.h" void initAlternatorCtrl(Logging *sharedLogger); @@ -19,5 +19,3 @@ void showAltInfo(void); void setDefaultAlternatorParameters(DECLARE_CONFIG_PARAMETER_SIGNATURE); void onConfigurationChangeAlternatorCallback(engine_configuration_s *previousConfiguration); - -#endif /* ALTERNATORCONTROLLER_H_ */ diff --git a/firmware/controllers/actuators/aux_pid.h b/firmware/controllers/actuators/aux_pid.h index 66c7705234..3745f3c476 100644 --- a/firmware/controllers/actuators/aux_pid.h +++ b/firmware/controllers/actuators/aux_pid.h @@ -5,8 +5,7 @@ * @author Andrey Belomutskiy, (c) 2012-2020 */ -#ifndef CONTROLLERS_ALGO_AUX_PID_H_ -#define CONTROLLERS_ALGO_AUX_PID_H_ +#pragma once #include "global.h" @@ -14,4 +13,3 @@ void initAuxPid(Logging *sharedLogger); void startAuxPins(void); void stopAuxPins(void); -#endif /* CONTROLLERS_ALGO_AUX_PID_H_ */ diff --git a/firmware/controllers/actuators/electronic_throttle.h b/firmware/controllers/actuators/electronic_throttle.h index 6957c2d297..3a90a12846 100644 --- a/firmware/controllers/actuators/electronic_throttle.h +++ b/firmware/controllers/actuators/electronic_throttle.h @@ -17,7 +17,7 @@ class DcMotor; class Logging; -class IEtbController : public PeriodicTimerController{ +class IEtbController : public PeriodicTimerController { public: DECLARE_ENGINE_PTR; virtual void init(DcMotor *motor, int ownIndex, pid_s *pidParameters) = 0; diff --git a/firmware/controllers/actuators/pwm_tester.h b/firmware/controllers/actuators/pwm_tester.h index b740c9e8eb..bac313c5c0 100644 --- a/firmware/controllers/actuators/pwm_tester.h +++ b/firmware/controllers/actuators/pwm_tester.h @@ -4,9 +4,7 @@ * @date Apr 29, 2014 * @author Andrey Belomutskiy, (c) 2012-2020 */ -#ifndef PWMTESTER_H_ -#define PWMTESTER_H_ + +#pragma once void initPwmTester(void); - -#endif /* PWMTESTER_H_ */