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
1 changed files with 17 additions and 18 deletions

View File

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