Some refactoring

This commit is contained in:
Ziver Koc 2016-05-10 16:04:39 +02:00
parent 78317d6c4f
commit 1273bcae49
11 changed files with 182 additions and 234 deletions

View file

@ -7,9 +7,9 @@ void SensorPhotocell::setup()
Interrupt::setupPinInterrupt(PC2); //PC3
}
unsigned int SensorPhotocell::getConsumption()
void SensorPhotocell::read(PowerData& data)
{
return pulse;
data.consumption = pulse;
}
void SensorPhotocell::reset()