sensor monitoring compleat, starting on fan control
This commit is contained in:
4
sensor.h
4
sensor.h
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class Sensor
|
||||
@ -10,6 +12,6 @@ public:
|
||||
|
||||
public:
|
||||
Sensor() = default;
|
||||
Sensor(std::string chipI, std::string nameI, int idI = 0): name(nameI), chip(chipI), name(nameI), id(idI) {}
|
||||
Sensor(std::string chipI, std::string nameI, int idI = 0): name(nameI), chip(chipI), id(idI) {}
|
||||
bool operator==(const Sensor& other) {return other.name == name && other.chip == chip;}
|
||||
};
|
||||
|
Reference in New Issue
Block a user