make the chip configrabe
This commit is contained in:
@@ -22,8 +22,8 @@ void sys::getDisk(Memory* disk, std::string mount) {
|
||||
disk->total = diskData.f_blocks * diskData.f_frsize;
|
||||
}
|
||||
|
||||
void sys::detectHwmon(sysSensors* s) {
|
||||
s->hwmon = getFirstDir("/sys/devices/platform/nct6775.656/hwmon"); // we hardcode the chip path, should be sane
|
||||
void sys::detectHwmon(sysSensors* s, std::string platform) {
|
||||
s->hwmon = getFirstDir("/sys/devices/platform/" + platform + "/hwmon"); // we hardcode the chip path, should be sane
|
||||
}
|
||||
|
||||
void sys::updateSensors(sysSensors* s) {
|
||||
|
||||
Reference in New Issue
Block a user