Correct indentation and coding style
This commit is contained in:
parent
f36d572070
commit
11bf7f6389
1 changed files with 17 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue