void Hwmon::read(Buffer * const buffer) { for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) { if (!counter->isEnabled()) { continue; } buffer->event(counter->getKey(), counter->read()); } }
void Hwmon::start() { for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) { if (!counter->isEnabled()) { continue; } counter->read(); } }