Force braces around multi-line statements (#3094)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Oxan van Leeuwen
2022-01-24 20:56:36 +01:00
committed by GitHub
parent 6b27f2d2cf
commit 80d03a631e
125 changed files with 770 additions and 504 deletions
@@ -124,10 +124,11 @@ void VL53L0XSensor::setup() {
uint8_t &val = ref_spad_map[i / 8];
uint8_t mask = 1 << (i % 8);
if (i < first_spad_to_enable || spads_enabled == spad_count)
if (i < first_spad_to_enable || spads_enabled == spad_count) {
val &= ~mask;
else if (val & mask)
} else if (val & mask) {
spads_enabled += 1;
}
}
this->write_bytes(0xB0, ref_spad_map, 6);