static void setVoltage(int hwChannel, float voltage) { scheduleMsg(&logger, "fake voltage: channel %d value %f", hwChannel, voltage); fakeAdcValues[hwChannel] = voltsToAdc(voltage); }
void MockAdcState::setMockVoltage(int hwChannel, float voltage) { scheduleMsg(&logger, "fake voltage: channel %d value %.2f", hwChannel, voltage); fakeAdcValues[hwChannel] = voltsToAdc(voltage); hasMockAdc[hwChannel] = true; }