47 return UnexpectedCode::Timeout;
78 void showInfo(
const char* sensorName)
const override;
static bool s_inhibitSensorTimeouts
Base class for sensors that compute a value on one thread, and want to make it available to consumers...
void showInfo(const char *sensorName) const override
void setValidValue(float value, efitick_t timestamp)
StoredValueSensor(SensorType type, efidur_t timeoutNt)
virtual void setTimeout(int timeoutMs)
void invalidate(UnexpectedCode why)
SensorResult get() const final override
Base class for sensors. Inherit this class to implement a new type of sensor.
expected< float > SensorResult