1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-25 01:05:08 +03:00
This commit is contained in:
3djc 2019-08-02 09:22:19 +02:00
parent 79f253e0e5
commit 5b516b8287

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;
}