i2c_spi_buses.h: work around astyle version inconsistency

This commit is contained in:
Matthias Grob 2020-05-13 20:59:30 +02:00 committed by Beat Küng
parent 03bafd5581
commit 22cdf80293
1 changed files with 5 additions and 3 deletions

View File

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