samples: sensor_shell: Fix return code for sensor_shell

Fix return code from boolean (probably typo) to int.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-03-07 16:42:07 +02:00 committed by Carles Cufí
parent f19e6d4811
commit 8a229732df

View file

@ -47,7 +47,7 @@ static void data_ready_trigger_handler(const struct device *sensor,
continue;
}
rc = sensor_channel_get(sensor, i, &value) != 0;
rc = sensor_channel_get(sensor, i, &value);
if (rc == -ENOTSUP && stats[i].state == SAMPLE_STATS_STATE_UNINITIALIZED) {
/* Stop reading this channel if the driver told us it's not supported. */
stats[i].state = SAMPLE_STATS_STATE_DISABLED;