Removed ugly namespace mentioning at namespace closing brace, which was added by the code formatter.
This commit is contained in:
parent
a31840c479
commit
c5547b37ee
|
@ -174,4 +174,4 @@ namespace Dough
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -77,6 +77,6 @@ namespace Dough
|
||||||
bool _containerHeightSet;
|
bool _containerHeightSet;
|
||||||
void _sample();
|
void _sample();
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -29,4 +29,4 @@ namespace Dough
|
||||||
target->ok = ok;
|
target->ok = ok;
|
||||||
target->value = value;
|
target->value = value;
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -16,6 +16,6 @@ namespace Dough
|
||||||
void clear();
|
void clear();
|
||||||
void copyTo(Measurement *target);
|
void copyTo(Measurement *target);
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -162,4 +162,4 @@ namespace Dough
|
||||||
_storage[i]->clear();
|
_storage[i]->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -60,6 +60,6 @@ namespace Dough
|
||||||
void _store(Measurement measurement);
|
void _store(Measurement measurement);
|
||||||
unsigned int _next();
|
unsigned int _next();
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -135,4 +135,4 @@ namespace Dough
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Dough
|
}
|
|
@ -43,6 +43,6 @@ namespace Dough
|
||||||
char *_mqttDeviceId;
|
char *_mqttDeviceId;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -87,4 +87,4 @@ namespace Dough
|
||||||
{
|
{
|
||||||
return _macAddress;
|
return _macAddress;
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -26,6 +26,6 @@ namespace Dough
|
||||||
char _macAddress[18]; // max MAC address length + 1
|
char _macAddress[18]; // max MAC address length + 1
|
||||||
Logger _logger;
|
Logger _logger;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -59,4 +59,4 @@ namespace Dough
|
||||||
return Measurement::Value(d);
|
return Measurement::Value(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -25,6 +25,6 @@ namespace Dough
|
||||||
Logger _logger;
|
Logger _logger;
|
||||||
SensorHCSR04 *_hcsr04;
|
SensorHCSR04 *_hcsr04;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -47,4 +47,4 @@ namespace Dough
|
||||||
return Measurement::Value(int(t));
|
return Measurement::Value(int(t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -23,6 +23,6 @@ namespace Dough
|
||||||
static HumiditySensor *_instance;
|
static HumiditySensor *_instance;
|
||||||
Logger _logger;
|
Logger _logger;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -44,4 +44,4 @@ namespace Dough
|
||||||
{
|
{
|
||||||
return _dht->readTemperature();
|
return _dht->readTemperature();
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -20,6 +20,6 @@ namespace Dough
|
||||||
static SensorDHT11 *_instance;
|
static SensorDHT11 *_instance;
|
||||||
DHT *_dht;
|
DHT *_dht;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -149,4 +149,4 @@ namespace Dough
|
||||||
|
|
||||||
return round(sum / HCSR04_SAMPLES_USE);
|
return round(sum / HCSR04_SAMPLES_USE);
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -62,6 +62,6 @@ namespace Dough
|
||||||
void _sortSamples();
|
void _sortSamples();
|
||||||
int _computeAverage();
|
int _computeAverage();
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -47,4 +47,4 @@ namespace Dough
|
||||||
return Measurement::Value(int(t));
|
return Measurement::Value(int(t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -23,6 +23,6 @@ namespace Dough
|
||||||
static TemperatureSensor *_instance;
|
static TemperatureSensor *_instance;
|
||||||
Logger _logger;
|
Logger _logger;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -143,4 +143,4 @@ namespace Dough
|
||||||
_state = UP_AFTER_LONG;
|
_state = UP_AFTER_LONG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -49,6 +49,6 @@ namespace Dough
|
||||||
unsigned long _debounceTimer = 0;
|
unsigned long _debounceTimer = 0;
|
||||||
ButtonState _state = UP;
|
ButtonState _state = UP;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -173,4 +173,4 @@ namespace Dough
|
||||||
{
|
{
|
||||||
return _pinState == LOW;
|
return _pinState == LOW;
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -54,6 +54,6 @@ namespace Dough
|
||||||
int _brightness;
|
int _brightness;
|
||||||
int _pulseStep;
|
int _pulseStep;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -70,4 +70,4 @@ namespace Dough
|
||||||
|
|
||||||
Serial.println("");
|
Serial.println("");
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
|
@ -24,6 +24,6 @@ namespace Dough
|
||||||
const char *_section;
|
const char *_section;
|
||||||
bool _suspended = false;
|
bool _suspended = false;
|
||||||
};
|
};
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -169,7 +169,7 @@ namespace Dough
|
||||||
delay(100);
|
delay(100);
|
||||||
led3.off();
|
led3.off();
|
||||||
}
|
}
|
||||||
} // namespace Dough
|
}
|
||||||
|
|
||||||
// This callback is called when the TC4 timer hits an overflow interrupt.
|
// This callback is called when the TC4 timer hits an overflow interrupt.
|
||||||
// Defined outside the Dough namespace, because TC4_Handler is a hard-coded
|
// Defined outside the Dough namespace, because TC4_Handler is a hard-coded
|
||||||
|
|
Loading…
Reference in New Issue