mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-14 14:14:09 +00:00
add const
This commit is contained in:
@@ -99,7 +99,7 @@ class TemperatureSensor {
|
||||
std::string get_metrics_prometheus();
|
||||
|
||||
// return back reference to the sensor list, used by other classes
|
||||
std::vector<Sensor, AllocatorPSRAM<Sensor>> sensors() const {
|
||||
const std::vector<Sensor, AllocatorPSRAM<Sensor>> & sensors() const {
|
||||
return sensors_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user