This commit is contained in:
3djc
2019-08-02 09:22:19 +02:00
parent 79f253e0e5
commit 5b516b8287
+1 -1
View File
@@ -47,7 +47,7 @@ class TelemetryFilterDecorator: public T {
uint8_t values[TELEMETRY_AVERAGE_COUNT];
void set(uint8_t value)
{
if (this->value == 0) {
if (this->value == 0 || value == 0) {
memset(values, value, TELEMETRY_AVERAGE_COUNT);
this->value = value;
}