Correct indentation and coding style

This commit is contained in:
Cedric Girard 2019-05-07 20:53:13 +02:00
parent f36d572070
commit 11bf7f6389
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4

View file

@ -96,14 +96,12 @@ void setup() {
//Init BME280 sensor //Init BME280 sensor
Wire.begin(); Wire.begin();
while(!bme.begin()) while(!bme.begin()) {
{
u8g2log.print("Could not find BME280 sensor!\n"); u8g2log.print("Could not find BME280 sensor!\n");
delay(1000); delay(1000);
} }
switch(bme.chipModel()) switch(bme.chipModel()) {
{
case BME280::ChipModel_BME280: case BME280::ChipModel_BME280:
u8g2log.print("Found BME280 sensor! Success.\n"); u8g2log.print("Found BME280 sensor! Success.\n");
break; break;
@ -116,8 +114,7 @@ void setup() {
//Init SGP30 sensor //Init SGP30 sensor
while(!sgp.begin()) while(!sgp.begin()) {
{
u8g2log.print("Could not find SGP30 sensor!\n"); u8g2log.print("Could not find SGP30 sensor!\n");
delay(1000); delay(1000);
} }
@ -199,3 +196,5 @@ void loop() {
delay(60000); delay(60000);
} }
// vim: set ts=2 sw=2 et: