diff options
| author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2022-05-09 15:16:08 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-06-05 06:15:46 (GMT) |
| commit | 7f45538eb53235ab4015fcf13533796c8759c7bc (patch) | |
| tree | 79d9a2f60e8fb13cb5356bcc5c6e93259449530b /src/drivers/Bma421.cpp | |
| parent | 718fbdab98ae80923a548ac03b7843f5d618a4f6 (diff) | |
Apply clang-format to all C++ files
Diffstat (limited to 'src/drivers/Bma421.cpp')
| -rw-r--r-- | src/drivers/Bma421.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/drivers/Bma421.cpp b/src/drivers/Bma421.cpp index 2f60f42..539cc8d 100644 --- a/src/drivers/Bma421.cpp +++ b/src/drivers/Bma421.cpp @@ -42,10 +42,16 @@ void Bma421::Init() { if (ret != BMA4_OK) return; - switch(bma.chip_id) { - case BMA423_CHIP_ID: deviceType = DeviceTypes::BMA421; break; - case BMA425_CHIP_ID: deviceType = DeviceTypes::BMA425; break; - default: deviceType = DeviceTypes::Unknown; break; + switch (bma.chip_id) { + case BMA423_CHIP_ID: + deviceType = DeviceTypes::BMA421; + break; + case BMA425_CHIP_ID: + deviceType = DeviceTypes::BMA425; + break; + default: + deviceType = DeviceTypes::Unknown; + break; } ret = bma423_write_config_file(&bma); |
