From: Michael Tremer Date: Thu, 23 Oct 2025 16:19:56 +0000 (+0000) Subject: sources: sensors: Reset r if there are no features X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=398b67f3b3e4cb1abbac31ebe94f12136676e3e9;p=telemetry.git sources: sensors: Reset r if there are no features Signed-off-by: Michael Tremer --- diff --git a/src/daemon/sources/sensors.c b/src/daemon/sources/sensors.c index 85a190a..a956d42 100644 --- a/src/daemon/sources/sensors.c +++ b/src/daemon/sources/sensors.c @@ -105,6 +105,9 @@ static int find_sensors(td_ctx* ctx, td_source* source, // Reset the feature index feature_index = 0; + // Reset r + r = 0; + // Iterate over all features for (;;) { feature = sensors_get_features(chip, &feature_index);