mirror of https://github.com/rusefi/wideband.git
remove GetInternalBatteryVoltage helper
This commit is contained in:
parent
2628d1d05c
commit
c0609b0da2
|
@ -36,7 +36,7 @@ void SamplingUpdateLiveData()
|
|||
data->heaterState = (uint8_t)GetHeaterState(ch);
|
||||
}
|
||||
|
||||
livedata_common.vbatt = GetInternalBatteryVoltage(0);
|
||||
livedata_common.vbatt = GetSampler(0).GetInternalBatteryVoltage();
|
||||
}
|
||||
|
||||
template<>
|
||||
|
|
|
@ -173,9 +173,3 @@ void StartSampling()
|
|||
adcStart(&ADCD1, nullptr);
|
||||
chThdCreateStatic(waSamplingThread, sizeof(waSamplingThread), NORMALPRIO + 5, SamplingThread, nullptr);
|
||||
}
|
||||
|
||||
// TODO: remove these helpers
|
||||
float GetInternalBatteryVoltage(int ch)
|
||||
{
|
||||
return samplers[ch].GetInternalBatteryVoltage();
|
||||
}
|
||||
|
|
|
@ -14,5 +14,3 @@ struct ISampler
|
|||
const ISampler& GetSampler(int ch);
|
||||
|
||||
void StartSampling();
|
||||
|
||||
float GetInternalBatteryVoltage(int ch);
|
||||
|
|
|
@ -39,7 +39,7 @@ static void UartThread(void*)
|
|||
float lambda = GetLambda(ch);
|
||||
int lambdaIntPart = lambda;
|
||||
int lambdaThousandths = (lambda - lambdaIntPart) * 1000;
|
||||
int batteryVoltageMv = GetInternalBatteryVoltage(ch) * 1000;
|
||||
int batteryVoltageMv = GetSampler(ch).GetInternalBatteryVoltage() * 1000;
|
||||
int duty = GetHeaterDuty(ch) * 100;
|
||||
|
||||
size_t writeCount = chsnprintf(printBuffer, 200,
|
||||
|
|
Loading…
Reference in New Issue