Browse Source

i2c_spi_buses.h: work around astyle version inconsistency

sbg
Matthias Grob 5 years ago committed by Beat Küng
parent
commit
22cdf80293
  1. 8
      platforms/common/include/px4_platform_common/i2c_spi_buses.h

8
platforms/common/include/px4_platform_common/i2c_spi_buses.h

@ -236,13 +236,15 @@ protected: @@ -236,13 +236,15 @@ protected:
virtual ~I2CSPIDriver() = default;
void Run() final {
// *INDENT-OFF* remove once there's astyle >3.1 in CI
void Run() final
{
static_cast<T *>(this)->RunImpl();
if (should_exit())
{
if (should_exit()) {
exit_and_cleanup();
}
}
// *INDENT-ON*
private:
};

Loading…
Cancel
Save