enjoying C++11
This commit is contained in:
parent
c7f5581382
commit
8aea068532
|
@ -65,16 +65,15 @@ private:
|
|||
|
||||
class ThermistorMath {
|
||||
public:
|
||||
ThermistorMath();
|
||||
void setConfig(thermistor_conf_s *config);
|
||||
void prepareThermistorCurve(thermistor_conf_s *tc);
|
||||
bool isLinearSensor();
|
||||
float getKelvinTemperatureByResistance(float resistance);
|
||||
float s_h_a;
|
||||
float s_h_b;
|
||||
float s_h_c;
|
||||
float s_h_a = 0;
|
||||
float s_h_b = 0;
|
||||
float s_h_c = 0;
|
||||
private:
|
||||
thermistor_conf_s currentConfig;
|
||||
thermistor_conf_s currentConfig = {};
|
||||
};
|
||||
|
||||
class Accelerometer {
|
||||
|
|
|
@ -249,11 +249,6 @@ void initThermistors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
#endif
|
||||
}
|
||||
|
||||
ThermistorMath::ThermistorMath() {
|
||||
memset(¤tConfig, 0, sizeof(currentConfig));
|
||||
s_h_a = s_h_b = s_h_c = 0;
|
||||
}
|
||||
|
||||
void ThermistorMath::setConfig(thermistor_conf_s *config) {
|
||||
bool isSameConfig = memcmp(config, ¤tConfig, sizeof(currentConfig)) == 0;
|
||||
if (isSameConfig) {
|
||||
|
|
Loading…
Reference in New Issue